/* QaafQalam homepage - bespoke magazine redesign: The Case Review */
:root {
    --qq-ink: #121212;
    --qq-muted: #5f6670;
    --qq-soft: #f4f1ec;
    --qq-paper: #fffdf8;
    --qq-line: #ded8cf;
    --qq-red: #a71919;
    --qq-red-deep: #761414;
    --qq-gold: #b58b45;
    --qq-night: #151515;
    --qq-night-2: #222222;
    --qq-shadow: 0 18px 42px rgba(24, 24, 24, .11);
}

body {
    background:
        linear-gradient(90deg, rgba(18, 18, 18, .045) 1px, transparent 1px) 0 0 / 36px 36px,
        #e8e3db;
    color: var(--qq-ink);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.qq-page {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--qq-paper);
    box-shadow: 0 28px 80px rgba(18, 18, 18, .18);
}

.qq-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
    justify-items: center;
    padding: 22px 34px 18px;
    background: var(--qq-paper);
    border-top: 6px solid var(--qq-night);
    border-bottom: 1px solid var(--qq-line);
    text-align: center;
}

.qq-header:before {
    content: "Mystery Cases | Unexplained Files | True Crime";
    display: block;
    color: var(--qq-red);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.qq-logo {
    display: inline-flex;
    justify-content: center;
}

.qq-logo img {
    max-height: 92px;
    width: auto;
}

.qq-ad-slot {
    width: min(760px, 100%);
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(18, 18, 18, .16);
    background: rgba(255, 255, 255, .36);
    color: #8b929a;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.qq-ad-slot span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.qq-ad-slot span:before,
.qq-ad-slot span:after {
    content: "";
    width: 42px;
    height: 1px;
    background: rgba(18, 18, 18, .12);
}

#navArea {
    float: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 20;
    background: var(--qq-night);
    border-bottom: 4px solid var(--qq-red);
    min-height: 0;
    height: auto;
    max-height: 58px;
    overflow: hidden;
}

#navArea .navbar {
    min-height: 0;
    height: auto;
    max-height: 54px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
}

#navbar {
    padding-right: 34px;
    padding-left: 34px;
    min-height: 0;
    max-height: 54px;
    overflow: hidden;
}

#navArea .navbar-header {
    min-height: 50px;
    margin: 0;
}

#navArea .navbar-collapse {
    border-top: 0;
    box-shadow: none;
}

.main_nav {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    float: none;
    min-height: 0;
    margin: 0;
}

.main_nav > li {
    float: none;
}

.main_nav > li > a {
    min-height: 50px;
    padding: 15px 18px 13px;
    color: #f7f2ea !important;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .03em;
    text-shadow: none;
    text-transform: uppercase;
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.main_nav > li:last-child > a {
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.main_nav > li > a:hover,
.main_nav > li.active > a,
.main_nav > li.active > a:hover,
.main_nav > li.active > a:focus {
    background: var(--qq-red) !important;
    color: #ffffff !important;
}

.desktop-home {
    font-size: 20px;
}

.mobile-show {
    display: none;
}

.qq-hero {
    clear: both;
    padding: 26px 34px 34px;
    background:
        linear-gradient(180deg, rgba(167, 25, 25, .06), transparent 42%),
        var(--qq-paper);
}

.qq-case-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.qq-case-hero__main {
    min-width: 0;
}

.qq-case-hero__headline {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
    gap: 28px;
    align-items: stretch;
    padding: 18px;
    border-bottom: 1px solid var(--qq-line);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(18, 18, 18, .08);
}

.qq-case-hero__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.qq-kicker {
    display: block;
    margin-bottom: 9px;
    color: var(--qq-red);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.qq-case-hero h1 {
    max-width: 540px;
    margin: 0 0 14px;
    color: var(--qq-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 44px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.qq-case-hero p {
    max-width: 560px;
    margin: 0 0 18px;
    color: var(--qq-muted);
    font-size: 16px;
    line-height: 1.78;
}

.qq-case-hero__copy h2 {
    max-width: 620px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.12;
    font-weight: 900;
}

.qq-case-hero__copy h2 a {
    color: var(--qq-ink);
}

.qq-case-hero__copy h2 a:hover,
.qq-case-hero__mini h3 a:hover {
    color: var(--qq-red);
}

.qq-case-hero__brief a:hover {
    color: #fecaca;
}

.qq-case-hero__image {
    display: block;
    min-height: 340px;
    overflow: hidden;
    background: #e5e0d7;
}

.qq-case-hero__image img,
.qq-case-hero__mini-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.qq-case-hero__image:hover img,
.qq-case-hero__mini-image:hover img {
    transform: scale(1.025);
    opacity: .9;
}

.qq-case-hero__under {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 0;
}

.qq-case-hero__mini {
    min-width: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--qq-line);
    box-shadow: 0 10px 22px rgba(18, 18, 18, .055);
}

.qq-case-hero__mini-image {
    display: block;
    height: 124px;
    overflow: hidden;
    background: #e5e0d7;
}

.qq-case-hero__mini h3 {
    margin: 10px 0 0;
    font-size: 15.5px;
    line-height: 1.35;
    font-weight: 900;
}

.qq-case-hero__mini h3 a {
    color: var(--qq-ink);
}

.qq-case-hero__brief {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 12px 14px;
    border: 1px solid var(--qq-line);
    border-left: 5px solid var(--qq-red);
    background: #ffffff;
    color: var(--qq-ink);
    overflow-x: auto;
}

.qq-case-hero__brief h2 {
    flex: 0 0 auto;
    margin: 0 12px 0 0;
    color: var(--qq-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.qq-case-hero__brief a {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid var(--qq-line);
    color: var(--qq-ink);
    background: #fbfaf6;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 900;
}

.qq-case-hero__brief a:hover {
    border-color: var(--qq-red);
    color: var(--qq-red);
}

.qq-feature-card__image img[src=""],
.qq-small-post__image img[src=""] {
    display: none;
}

.qq-main {
    padding: 6px 34px 44px;
    background: var(--qq-paper);
}

.qq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.qq-content-grid {
    display: grid;
    gap: 0;
    min-width: 0;
}

.qq-section {
    padding: 30px 0 32px;
    border-top: 1px solid var(--qq-night);
    background: transparent;
}

.qq-section:first-child {
    border-top-width: 4px;
}

.qq-section--wide {
    min-height: 0;
}

.qq-section__header {
    display: grid;
    grid-template-columns: auto minmax(40px, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.qq-section__header:after {
    content: "";
    grid-column: 2;
    height: 1px;
    background: var(--qq-line);
}

.qq-section__header h2 {
    grid-column: 1;
    margin: 0;
    color: var(--qq-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    line-height: 1.1;
    font-weight: 900;
}

.qq-section__header h2:before {
    content: "Section";
    display: block;
    margin-bottom: 3px;
    color: var(--qq-red);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.qq-section__header a {
    grid-column: 3;
    color: var(--qq-red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.qq-section__header a:hover {
    color: var(--qq-red-deep);
}

.qq-section__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.qq-feature-card {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    min-width: 0;
    min-height: 0;
    height: auto !important;
    padding: 16px;
    border-bottom: 1px solid var(--qq-line);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(18, 18, 18, .055);
}

.qq-feature-card__image {
    display: block;
    overflow: hidden;
    background: #e5e0d7;
    height: 176px;
}

.qq-feature-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.qq-feature-card__body {
    display: block !important;
    align-self: start;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
}

.qq-feature-card:hover .qq-feature-card__image img {
    transform: scale(1.025);
    opacity: .9;
}

.qq-feature-card h3 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.18;
    font-weight: 900;
}

.qq-feature-card h3 a {
    color: var(--qq-ink);
}

.qq-feature-card h3 a:hover,
.qq-small-post__title:hover,
.qq-category-list a:hover {
    color: var(--qq-red);
}

.qq-feature-card p {
    margin: 8px 0 0 !important;
    color: var(--qq-muted);
    font-size: 15px;
    line-height: 1.62;
}

.qq-small-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px;
    min-width: 0;
    margin: 0;
    padding: 2px 0 0;
    list-style: none;
    border-top: 0;
}

.qq-content-grid > .qq-section .qq-small-post {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 94px;
    padding: 14px 0;
    border-bottom: 1px solid var(--qq-line);
}

.qq-content-grid > .qq-section .qq-small-post__image {
    width: 104px;
    height: 70px;
    overflow: hidden;
    background: #e5e0d7;
}

.qq-content-grid > .qq-section .qq-small-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qq-content-grid > .qq-section .qq-small-post__title {
    color: var(--qq-ink);
    font-size: 15.5px;
    line-height: 1.4;
    font-weight: 900;
}

.qq-sidebar {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 70px;
    margin-top: 0;
}

.qq-sidebar-box {
    border: 1px solid var(--qq-line);
    border-top: 4px solid var(--qq-night);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(18, 18, 18, .06);
}

.qq-sidebar-box__header {
    padding: 15px 16px;
    border-bottom: 1px solid var(--qq-line);
    background: #fbfaf6;
}

.qq-sidebar-box__header h2 {
    margin: 0;
    color: var(--qq-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
}

.qq-sidebar .qq-small-list {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 0;
    padding: 6px 16px 12px;
}

.qq-sidebar .qq-small-post {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 11px 0;
    border-bottom: 1px solid var(--qq-line);
}

.qq-sidebar .qq-small-post:last-child {
    border-bottom: 0;
}

.qq-sidebar .qq-small-post__image {
    width: 84px;
    height: 60px;
    overflow: hidden;
    background: #e5e0d7;
}

.qq-sidebar .qq-small-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qq-sidebar .qq-small-post__title {
    color: var(--qq-ink);
    font-size: 14px;
    line-height: 1.36;
    font-weight: 900;
}

.qq-category-list {
    margin: 0;
    padding: 8px 16px 12px;
    list-style: none;
}

.qq-category-list li + li {
    border-top: 1px solid var(--qq-line);
}

.qq-category-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    color: var(--qq-ink);
    font-weight: 900;
}

.qq-category-list a:after {
    content: ">";
    color: var(--qq-red);
}

.qq-footer {
    clear: both;
    background:
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 32px 32px,
        var(--qq-night);
    color: #e5e7eb;
}

.qq-footer__inner {
    display: grid;
    grid-template-columns: minmax(280px, 1.45fr) repeat(3, minmax(160px, 1fr));
    gap: 28px;
    padding: 40px 34px 30px;
    border-top: 6px solid var(--qq-red);
}

.qq-footer__brand h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.qq-footer h2 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.qq-footer p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.72;
}

.qq-footer__tagline {
    display: inline-block;
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    color: #fecaca;
    font-weight: 900;
}

.qq-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.qq-footer__links li + li {
    margin-top: 9px;
}

.qq-footer a {
    color: #e5e7eb;
}

.qq-footer a:hover {
    color: #fecaca;
}

.qq-footer__contact span {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.qq-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 34px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #cbd5e1;
}

.qq-footer__legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 1120px) {
    .qq-case-hero,
    .qq-layout {
        grid-template-columns: 1fr;
    }

    .qq-case-hero__brief {
        min-height: 0;
    }

    .qq-sidebar {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 920px) {
    .main_nav {
        justify-content: flex-start;
    }

    .qq-case-hero__headline,
    .qq-case-hero__under,
    .qq-section__content,
    .qq-feature-card,
    .qq-small-list,
    .qq-sidebar {
        grid-template-columns: 1fr;
    }

    .qq-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .qq-header {
        padding-right: 16px;
        padding-left: 16px;
    }

    .qq-logo img {
        max-height: 74px;
    }

    .mobile-show {
        display: inline;
    }

    .desktop-home {
        display: none;
    }

    #navbar,
    .qq-hero,
    .qq-main {
        padding-right: 15px;
        padding-left: 15px;
    }

    #navArea {
        position: static;
        max-height: 56px;
        overflow: hidden;
    }

    #navArea:has(#navbar.in),
    #navArea:has(#navbar.collapsing) {
        max-height: none;
        overflow: visible;
    }

    #navArea .navbar,
    #navbar {
        max-height: none;
    }

    .qq-case-hero h1 {
        font-size: 38px;
    }

    .qq-case-hero__copy h2 {
        font-size: 25px;
    }

    .qq-case-hero__image {
        min-height: 300px;
    }

    .qq-case-hero__mini-image {
        height: 180px;
    }

    .qq-section__header {
        grid-template-columns: 1fr auto;
    }

    .qq-section__header:after {
        display: none;
    }

    .qq-section__header h2 {
        font-size: 24px;
    }

    .qq-footer__inner,
    .qq-footer__bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .qq-content-grid > .qq-section .qq-small-post,
    .qq-sidebar .qq-small-post {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .qq-content-grid > .qq-section .qq-small-post__image,
    .qq-sidebar .qq-small-post__image {
        width: 78px;
        height: 58px;
    }
}

@media (min-width: 768px) {
    #navArea {
        position: static !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        overflow: hidden !important;
    }

    #navArea .navbar,
    #navArea .navbar-inverse,
    #navArea .navbar-collapse,
    #navbar {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
    }

    #navArea .navbar-header {
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #navArea .navbar-toggle {
        display: none !important;
    }

    .main_nav {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        align-items: stretch !important;
        overflow: hidden !important;
    }

    .main_nav > li,
    .main_nav > li > a {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
}
