/* Qannas modern homepage */
.qn-home {
    --qn-radius: 22px;
    --qn-radius-sm: 16px;
    --qn-shadow: 0 18px 50px rgba(17, 24, 39, .08);
    --qn-shadow-hover: 0 22px 56px rgba(17, 24, 39, .14);
    padding: 32px 0 48px;
}

.qn-home a { text-decoration: none; }

.qn-intro {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 28px;
    align-items: center;
    padding: 38px;
    margin-bottom: 28px;
    border: 1px solid var(--bg-color-3);
    border-radius: 28px;
    background:
        radial-gradient(circle at 15% 20%, rgba(var(--site-color-rgb), .14), transparent 34%),
        linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color-2) 100%);
    box-shadow: var(--qn-shadow);
}

.qn-intro::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    inset-inline-end: -80px;
    bottom: -120px;
    border: 42px solid rgba(var(--site-color-rgb), .08);
    border-radius: 50%;
    pointer-events: none;
}

.qn-intro-copy { position: relative; z-index: 1; max-width: 760px; }
.qn-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(var(--site-color-rgb), .22);
    border-radius: 999px;
    color: var(--site-color);
    background: rgba(var(--site-color-rgb), .08);
    font-size: .82rem;
    font-weight: 700;
}

.qn-intro h1 {
    margin: 0 0 14px;
    max-width: 850px;
    font-size: clamp(2rem, 4.2vw, 4.3rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 800;
}

.qn-intro p {
    margin: 0;
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.9;
    opacity: .78;
}

.qn-quick-links {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.qn-quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px;
    color: var(--text-color);
    background: var(--bg-color);
    border: 1px solid var(--bg-color-3);
    border-radius: 15px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.qn-quick-links a:hover {
    transform: translateX(-5px);
    border-color: rgba(var(--site-color-rgb), .45);
    box-shadow: 0 10px 24px rgba(0,0,0,.07);
}

.qn-quick-links span { font-weight: 800; }
.qn-quick-links small { opacity: .62; font-size: .78rem; }

.qn-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
    gap: 20px;
    margin-bottom: 44px;
}

.qn-lead {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    border-radius: var(--qn-radius);
    background: #111;
    box-shadow: var(--qn-shadow);
}

.qn-lead-media,
.qn-lead-media img,
.qn-lead-media .qn-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.qn-lead-media img { object-fit: cover; transition: transform .55s ease; }
.qn-lead:hover .qn-lead-media img { transform: scale(1.035); }

.qn-lead-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,10,15,.05) 25%, rgba(8,10,15,.88) 100%);
}

.qn-lead-content {
    position: absolute;
    z-index: 2;
    inset-inline: 0;
    bottom: 0;
    padding: 34px;
    color: #fff;
}

.qn-lead-content h2 {
    margin: 10px 0 12px;
    max-width: 900px;
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1.25;
    font-weight: 800;
}

.qn-lead-content h2 a,
.qn-lead-content .qn-category { color: #fff; }

.qn-lead-content p {
    max-width: 750px;
    margin: 0 0 18px;
    line-height: 1.8;
    color: rgba(255,255,255,.8);
}

.qn-read-more {
    display: inline-flex;
    padding: 9px 15px;
    border-radius: 999px;
    color: #111;
    background: #fff;
    font-weight: 800;
    font-size: .88rem;
}

.qn-hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.qn-card {
    overflow: hidden;
    background: var(--bg-color);
    border: 1px solid var(--bg-color-3);
    border-radius: var(--qn-radius-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.qn-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--site-color-rgb), .28);
    box-shadow: var(--qn-shadow-hover);
}

.qn-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-color-2);
}

.qn-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.qn-card:hover .qn-card-media img { transform: scale(1.035); }
.qn-card-body { padding: 16px; }

.qn-card-title {
    margin: 8px 0 9px;
    font-size: 1.02rem;
    line-height: 1.55;
    font-weight: 800;
}

.qn-card-title a { color: var(--text-color); }
.qn-card-excerpt { margin: 0; line-height: 1.75; font-size: .88rem; opacity: .7; }

.qn-card-compact .qn-card-body { padding: 13px; }
.qn-card-compact .qn-card-title { font-size: .94rem; margin-bottom: 0; }
.qn-card-compact .qn-card-excerpt { display: none; }

.qn-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .72rem;
}

.qn-category {
    color: var(--site-color);
    font-weight: 800;
}

.qn-date { opacity: .6; }

.qn-section { margin: 46px 0; }

.qn-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.qn-section-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--site-color);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.qn-section-head h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.5vw, 2.2rem);
    font-weight: 800;
}

.qn-section-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-color);
    font-weight: 800;
    font-size: .86rem;
}

.qn-section-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.qn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.qn-split {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 24px;
    align-items: start;
    margin: 46px 0;
}

.qn-split .qn-section { margin: 0; }
.qn-split .qn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.qn-popular {
    padding: 22px;
    border-radius: var(--qn-radius);
    color: var(--text-color);
    background: var(--bg-color);
    border: 1px solid var(--bg-color-3);
    box-shadow: var(--qn-shadow);
}

.qn-section-head-small { margin-bottom: 10px; }

.qn-popular-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.qn-popular-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--bg-color-3);
}

.qn-popular-list li:first-child { border-top: 0; }

.qn-rank {
    color: var(--site-color);
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 800;
    opacity: .9;
}

.qn-popular-list a {
    display: block;
    color: var(--text-color);
    font-weight: 800;
    line-height: 1.55;
}

.qn-popular-list small {
    display: block;
    margin-top: 6px;
    opacity: .55;
    font-size: .73rem;
}

.qn-newsletter {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr minmax(300px, .7fr);
    align-items: center;
    gap: 28px;
    margin-top: 52px;
    padding: 34px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(135deg, #191919, #2a1010 58%, #471111);
    box-shadow: var(--qn-shadow);
}

.qn-newsletter h2 { margin: 0 0 8px; font-size: clamp(1.45rem, 2.6vw, 2.2rem); }
.qn-newsletter p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.8; }
.qn-badge-light { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }

.qn-search {
    display: flex;
    gap: 8px;
    padding: 7px;
    border-radius: 16px;
    background: #fff;
}

.qn-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 10px 12px;
    color: #202020;
    background: transparent;
}

.qn-search button {
    border: 0;
    border-radius: 11px;
    padding: 10px 18px;
    color: #fff;
    background: var(--site-color);
    font-weight: 800;
}

.qn-latest-section {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--bg-color-3);
    border-radius: var(--qn-radius);
    background: var(--bg-color);
    box-shadow: var(--qn-shadow);
}

.qn-latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qn-page-indicator {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--site-color);
    background: rgba(var(--site-color-rgb), .08);
    font-size: .78rem;
    font-weight: 800;
}

.qn-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--bg-color-3);
}

.qn-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-width: 150px;
    padding: 11px 16px;
    border-radius: 12px;
    color: var(--text-color);
    background: var(--bg-color-2);
    border: 1px solid var(--bg-color-3);
    font-weight: 800;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.qn-page-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--site-color-rgb), .35);
    background: rgba(var(--site-color-rgb), .06);
}

.qn-page-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.qn-page-prev {
    justify-self: start;
}

.qn-page-next {
    justify-self: end;
    color: #fff;
    background: var(--site-color);
    border-color: var(--site-color);
}

.qn-page-next:hover {
    color: #fff;
    background: rgba(var(--site-color-rgb), .9);
}

.qn-placeholder {
    display: block;
    background:
        linear-gradient(135deg, rgba(var(--site-color-rgb), .16), transparent),
        var(--bg-color-2);
}

@media (max-width: 1199px) {
    .qn-hero { grid-template-columns: 1fr; }
    .qn-hero-side { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .qn-card-compact .qn-card-title { font-size: .88rem; }
}

@media (max-width: 991px) {
    .qn-home { padding-top: 20px; }
    .qn-intro { grid-template-columns: 1fr; padding: 28px; }
    .qn-quick-links { grid-template-columns: repeat(3, 1fr); }
    .qn-quick-links a { display: block; }
    .qn-quick-links small { display: block; margin-top: 4px; }
    .qn-hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qn-split { grid-template-columns: 1fr; }
    .qn-newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .qn-home { padding: 14px 0 32px; }
    .qn-intro { padding: 22px 18px; border-radius: 20px; }
    .qn-intro h1 { font-size: 2rem; }
    .qn-quick-links { grid-template-columns: 1fr; }
    .qn-quick-links a { display: flex; }
    .qn-lead { min-height: 430px; }
    .qn-lead-content { padding: 22px 18px; }
    .qn-lead-content h2 { font-size: 1.55rem; }
    .qn-lead-content p { font-size: .88rem; }
    .qn-hero-side,
    .qn-grid,
    .qn-split .qn-grid { grid-template-columns: 1fr; }
    .qn-section { margin: 34px 0; }
    .qn-section-head { align-items: center; }
    .qn-card {
        display: grid;
        grid-template-columns: 130px 1fr;
    }
    .qn-card-media { aspect-ratio: 1 / 1; height: 100%; }
    .qn-card-excerpt { display: none; }
    .qn-card-compact { grid-template-columns: 120px 1fr; }
    .qn-newsletter { margin-top: 34px; padding: 24px 18px; }
    .qn-search { flex-direction: column; }
    .qn-search button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
    .qn-intro,
    .qn-hero,
    .qn-section,
    .qn-split,
    .qn-newsletter {
        animation: qnRise .55s ease both;
    }
    .qn-hero { animation-delay: .05s; }
    .qn-section { animation-delay: .08s; }
}

@keyframes qnRise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
