.qm-topic {
    background: #fff;
    color: #000;
    font-family: Cairo, Tahoma, sans-serif;
    padding-bottom: 48px;
}

.qm-topic-banner {
    padding-top: 18px;
}

.qm-topic-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.qm-topic-meta {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px;
    margin: 0 !important;
    padding: 10px 0 8px !important;
    box-sizing: border-box;
    color: #2d3137;
    font-size: 16px;
}

html[dir="rtl"] .qm-topic-meta {
    direction: rtl;
}

.qm-topic-date,
.qm-topic-meta-end {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

html[dir="rtl"] .qm-topic-date {
    direction: rtl;
}

.qm-topic-meta-end {
    direction: ltr;
}

.qm-topic-meta i {
    color: #ce021d;
    margin: 0;
}

.qm-topic-lang {
    display: inline-block;
    background: #ce021d;
    color: #fff;
    border-radius: 4px;
    padding: 2px 18px;
    font-size: 15px;
    line-height: 28px;
    text-decoration: none;
    margin: 0;
}

.qm-topic-lang:hover,
.qm-topic-lang:focus {
    background: #a80118;
    color: #fff;
    text-decoration: none;
}

.qm-topic-content {
    padding-top: 8px;
    padding-bottom: 20px;
}

.qm-topic-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding-bottom: 16px;
}

.qm-topic-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    margin-top: 0;
}

.qm-topic-title {
    flex: 1;
    min-width: 0;
    text-align: start;
}

.qm-topic-title h1 {
    display: block;
    margin: 0 !important;
    color: #2d3137;
    font-size: 32.4px !important;
    font-weight: 600 !important;
    line-height: 38.88px;
    text-align: start !important;
}

.qm-topic-kicker {
    display: block !important;
    margin: 6px 0 0;
    color: #000;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4;
    text-align: start !important;
}

.qm-topic-excerpt {
    margin: 10px 0 14px;
    color: #ce021d;
    font-size: 27px !important;
    font-weight: 600 !important;
    line-height: 43.2px;
    text-align: start;
}

.qm-topic-copy h2 {
    margin: 22px 0 8px;
    color: #2d3137;
    font-size: 27px !important;
    font-weight: 600 !important;
    line-height: 32.4px;
    text-align: start;
}

.qm-topic-copy p,
.qm-topic-copy li {
    margin: 0 0 14px;
    color: #000;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 31.5px;
    text-align: start;
}

.qm-topic-copy ul,
.qm-topic-copy ol {
    margin: 0 0 14px;
    padding-inline-start: 22px;
    padding-inline-end: 0;
}

.qm-topic-copy li {
    margin-bottom: 6px;
    line-height: 27px;
}

.qm-topic strong {
    font-weight: 500 !important;
}

.qm-topic-note {
    margin: 28px 0 16px;
    color: #525252;
    font-size: 14px;
    line-height: 1.8;
}

.qm-topic-ask {
    margin-top: 36px;
    text-align: center;
}

.qm-topic-ask h2 {
    margin: 0 0 10px;
    color: #2d3137;
    font-size: 27px !important;
    font-weight: 600 !important;
    line-height: 32.4px;
    text-align: center;
}

.qm-topic-ask p {
    max-width: 760px;
    margin: 0 auto 18px;
    color: #000;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 31.5px;
    text-align: center;
}

.qm-topic-ask-btn {
    display: inline-block;
    background: #ce021d;
    color: #fff;
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.qm-topic-ask-btn:hover,
.qm-topic-ask-btn:focus {
    background: #ce021d;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 767px) {
    .qm-topic-meta {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between !important;
        gap: 8px;
        font-size: 13px;
    }

    .qm-topic-date,
    .qm-topic-meta-end {
        flex: 0 1 auto;
        white-space: nowrap;
        gap: 6px;
    }

    .qm-topic-lang {
        padding: 1px 10px;
        font-size: 13px;
        line-height: 24px;
    }

    .qm-topic-head {
        flex-direction: row !important;
        align-items: center;
    }

    .qm-topic-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .qm-topic-title h1 {
        font-size: 24px !important;
        line-height: 1.4;
    }

    .qm-topic-kicker {
        font-size: 15px !important;
    }

    .qm-topic-excerpt,
    .qm-topic-copy h2,
    .qm-topic-ask h2 {
        font-size: 20px !important;
        line-height: 1.5;
    }

    .qm-topic-copy p,
    .qm-topic-copy li,
    .qm-topic-ask p {
        font-size: 16px !important;
        line-height: 28px;
    }
}
