/* Shared QaafQalam header and compact footer */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.qq-dispatch-nav {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    background: #1c1917;
    border-bottom: 2px solid #9b1c1c;
    padding: 0 28px;
    direction: ltr;
    text-align: left;
}

.qq-dispatch-logo {
    display: flex;
    align-items: center;
    padding: 13px 18px 13px 0;
    border-right: 1px solid rgba(255,255,255,.06);
    border-radius: 4px;
    color: #d6cec4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
}

.qq-dispatch-logo em {
    color: #e05555;
    font-style: normal;
}

.qq-dispatch-links {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    margin-left: 22px;
}

.qq-dispatch-link {
    display: flex;
    align-items: center;
    padding: 0 13px;
    border-right: 1px solid rgba(255,255,255,.06);
    color: #b8aea4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}

.qq-dispatch-link:hover,
.qq-dispatch-link:focus-visible,
.qq-dispatch-link.active {
    color: #f5f0e8;
    text-decoration: none;
}

.qq-dispatch-urdu {
    margin-left: auto;
    padding: 0 24px;
    border-right: 0;
    border-left: 1px solid rgba(255,255,255,.08);
    color: #ffb4b4;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.qq-dispatch-urdu.active,
.qq-dispatch-urdu:hover,
.qq-dispatch-urdu:focus-visible {
    color: #ffb4b4;
}

.mobile-label {
    display: none;
}

.qq-dispatch-logo:focus-visible,
.qq-dispatch-link:focus-visible {
    outline: 3px solid #e05555;
    outline-offset: 3px;
    border-radius: 4px;
}

.compact-footer {
    clear: both;
    contain: layout paint;
    border-top: 2px solid #9b1c1c;
    background: #14110f;
    color: #c8c0b4;
    padding: 28px 28px 18px;
    direction: ltr;
    text-align: left;
    overflow: hidden;
}

.compact-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.compact-footer .qq-footer__brand h2 {
    margin: 0 0 8px;
    color: #f5f0e8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
}

.compact-footer .qq-footer__brand p {
    max-width: 460px;
    margin: 0 0 8px;
    color: #c8c0b4;
    font-size: 14px;
    line-height: 1.6;
}

.compact-footer .qq-footer__email {
    color: #ffb4b4;
    font-size: 14px;
    text-decoration: none;
}

.qq-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    max-width: 560px;
}

.qq-footer__nav a {
    color: #c8c0b4;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.qq-footer__nav a:hover,
.qq-footer__nav a:focus-visible {
    color: #f5f0e8;
}

.compact-footer .qq-footer__bottom {
    max-width: 1180px;
    margin: 18px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: transparent;
    color: #9f968c;
    font-size: 13px;
}

.compact-footer .qq-footer__bottom a {
    color: #c8c0b4;
    text-decoration: none;
}

.compact-footer a:focus-visible {
    outline: 3px solid #e05555;
    outline-offset: 3px;
    border-radius: 4px;
}

.compact-footer .google-auto-placed,
.compact-footer ins.adsbygoogle,
.compact-footer [data-google-query-id],
.compact-footer div[id^="google_ads"],
.compact-footer div[id*="google_ads"],
.compact-footer div[id^="aswift_"],
.compact-footer div[id*="aswift_"],
.compact-footer iframe[id^="google_ads"],
.compact-footer iframe[id*="google_ads"],
.compact-footer iframe[id^="aswift_"],
.compact-footer iframe[id*="aswift_"] {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 900px) {
    .qq-dispatch-nav {
        flex-wrap: wrap;
        align-items: center;
        padding: 0 14px;
    }

    .qq-dispatch-logo {
        order: 1;
        padding: 13px 0;
        border-right: 0;
        font-size: 22px;
    }

    .qq-dispatch-urdu {
        order: 2;
        margin-left: auto;
        padding: 13px 0;
        border-left: 0;
        font-size: 18px;
    }

    .qq-dispatch-links {
        order: 3;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-left: 0;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .qq-dispatch-link {
        padding: 9px 8px;
        border-right: 0;
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

    .desktop-label {
        display: none;
    }

    .mobile-label {
        display: inline;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 0 !important;
    }

    .scrollToTop {
        display: none !important;
    }

    .compact-footer {
        padding: 24px 16px 16px;
    }

    .compact-footer__inner {
        flex-direction: column;
        gap: 18px;
    }

    .qq-footer__nav {
        justify-content: flex-start;
        gap: 9px 13px;
    }

    .compact-footer .qq-footer__brand p {
        max-width: 100%;
    }

    .compact-footer ~ .google-auto-placed,
    .compact-footer ~ ins.adsbygoogle,
    .compact-footer ~ [data-google-query-id],
    .compact-footer ~ div[id^="google_ads"],
    .compact-footer ~ div[id*="google_ads"],
    .compact-footer ~ div[id^="aswift_"],
    .compact-footer ~ div[id*="aswift_"],
    .compact-footer ~ iframe[id^="google_ads"],
    .compact-footer ~ iframe[id*="google_ads"],
    .compact-footer ~ iframe[id^="aswift_"],
    .compact-footer ~ iframe[id*="aswift_"],
    body > .google-auto-placed:last-child,
    body > ins.adsbygoogle:last-child,
    body > [data-google-query-id]:last-child,
    body > div[id^="google_ads"]:last-child,
    body > div[id*="google_ads"]:last-child,
    body > div[id^="aswift_"]:last-child,
    body > div[id*="aswift_"]:last-child {
        display: none !important;
        width: 0 !important;
        max-width: 0 !important;
        height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}
