/* =========================================================
   QAUSHIK LABS - SINGLE BLOG POST
   Clean version: !important used only where needed
========================================================= */


/* =========================================================
   ROOT / RESET
========================================================= */
.ql-single-blog-page,
.ql-single-blog-page *,
.ql-blog-article,
.ql-blog-article * {
    font-family: inherit;
}

.ql-single-blog-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: var(--ql-white);
    overflow: visible;
}

.ql-single-blog-page *,
.ql-single-blog-page *::before,
.ql-single-blog-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   ASTRA / WORDPRESS NORMALISATION
   Keep !important here because Astra may inject layout rules
========================================================= */

body:has(.ql-single-blog-page) #content,
body:has(.ql-single-blog-page) .site-content,
body:has(.ql-single-blog-page) #primary,
body:has(.ql-single-blog-page) .content-area,
body:has(.ql-single-blog-page) .site-main,
body:has(.ql-single-blog-page) .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body:has(.ql-single-blog-page) .site-content > .ast-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   SINGLE BLOG HERO
========================================================= */

.ql-single-blog-page .ql-article-hero {
    position: relative;
    width: 100vw;
    max-width: none;
    min-height: 420px;
    margin: 0 calc(50% - 50vw);
    padding: 82px 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    background: var(--ql-black);
    color: var(--ql-white);
}

.ql-single-blog-page .ql-article-hero--has-image {
    background-image: var(--ql-single-hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ql-single-blog-page .ql-article-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.68);
    pointer-events: none;
}

.ql-single-blog-page .ql-article-hero__inner {
    position: relative;
    z-index: 2;

    width: min(920px, calc(100% - 40px));
    max-width: 920px;
    margin: 0 auto;

    text-align: center;
}

.ql-single-blog-page .ql-article-category {
    display: inline-block;
    margin: 0 0 17px;

    color: var(--ql-yellow);

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;

    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.ql-single-blog-page .ql-article-hero h1 {
    max-width: 900px;
    margin: 0 auto 20px;

    color: var(--ql-white);

    font-size: clamp(36px, 4vw, 50px);
    line-height: 1.13;
    font-weight: 700;
    letter-spacing: -1px;

    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.ql-single-blog-page .ql-article-subtitle {
    max-width: 760px;
    margin: 0 auto 22px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 17px;
    line-height: 1.65;
}

.ql-single-blog-page .ql-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;
    line-height: 1.5;
}

.ql-single-blog-page .ql-article-meta__separator {
    color: var(--ql-yellow);
}


/* =========================================================
   ARTICLE WRAPPER
========================================================= */

.ql-single-blog-page .ql-article {
    width: 100%;
    margin: 0;
    padding: 70px 24px 125px;

    background: var(--ql-white);
}

.ql-single-blog-page .ql-article__container {
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px;
    margin: 0 auto;
}

.ql-single-blog-page .ql-article-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================================
   ELEMENTOR CONTENT NORMALISATION
   !important only where Elementor commonly injects width/padding
========================================================= */

.ql-single-blog-page .ql-article-content .elementor,
.ql-single-blog-page .ql-article-content .elementor-element,
.ql-single-blog-page .ql-article-content .elementor-widget,
.ql-single-blog-page .ql-article-content .elementor-widget-container,
.ql-single-blog-page .ql-article-content .elementor-widget-html {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* =========================================================
   DEFAULT ARTICLE TYPOGRAPHY
========================================================= */

.ql-single-blog-page .ql-article-content p {
    margin: 0 0 22px;
    color: var(--ql-text);

    font-family: inherit;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 400;
}

.ql-single-blog-page .ql-article-content h2 {
    margin: 48px 0 18px;

    color: var(--ql-black);

    font-family: inherit;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ql-single-blog-page .ql-article-content h3 {
    margin: 32px 0 14px;

    color: var(--ql-black);

    font-family: inherit;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}

.ql-single-blog-page .ql-article-content h4 {
    margin: 28px 0 12px;

    color: var(--ql-black);

    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}


/* =========================================================
   DEFAULT ARTICLE LISTS
========================================================= */

.ql-single-blog-page .ql-article-content ul,
.ql-single-blog-page .ql-article-content ol {
    margin: 18px 0 28px;
    padding-left: 24px;
}

.ql-single-blog-page .ql-article-content li {
    margin-bottom: 9px;

    color: var(--ql-text);

    font-family: inherit;
    font-size: 16.5px;
    line-height: 1.7;
}

.ql-single-blog-page .ql-article-content li::marker {
    color: var(--ql-yellow);
    font-weight: 700;
}


/* =========================================================
   DEFAULT ARTICLE LINKS
========================================================= */

.ql-single-blog-page .ql-article-content a {
    color: var(--ql-black);
    font-weight: 600;

    text-decoration-line: underline;
    text-decoration-color: var(--ql-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.ql-single-blog-page .ql-article-content a:hover {
    color: var(--ql-black);
}


/* =========================================================
   BLOCKQUOTE
========================================================= */

.ql-single-blog-page .ql-article-content blockquote {
    margin: 30px 0;
    padding: 20px 24px;

    background: rgba(200, 163, 106, 0.12);

    border: 0;
    border-left: 4px solid var(--ql-yellow);
    border-radius: 4px;
}

.ql-single-blog-page .ql-article-content blockquote p {
    margin: 0;

    color: var(--ql-black);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   DEFAULT ARTICLE IMAGES
========================================================= */

.ql-single-blog-page .ql-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


/* =========================================================
   TABLES
========================================================= */

.ql-single-blog-page .ql-article-content table {
    width: 100%;
    margin: 28px 0 34px;

    border-collapse: collapse;
    border: 1px solid rgba(0, 0, 0, 0.10);
}

.ql-single-blog-page .ql-article-content th,
.ql-single-blog-page .ql-article-content td {
    padding: 14px 16px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);

    text-align: left;

    font-size: 15px;
    line-height: 1.55;
}

.ql-single-blog-page .ql-article-content th {
    background: var(--ql-black);
    color: var(--ql-white);
    font-weight: 700;
}

.ql-single-blog-page .ql-article-content td {
    color: var(--ql-text);
}


/* =========================================================
   OPTIONAL BLOG OPENING
========================================================= */

.ql-single-blog-page .ql-blog-opening {
    width: 100%;
    margin: 0 0 52px;
}

.ql-single-blog-page .ql-blog-opening__eyebrow {
    display: block;
    margin: 0 0 9px;

    color: var(--ql-yellow);

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;

    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.ql-single-blog-page .ql-blog-opening h2 {
    max-width: 780px;
    margin: 0 0 16px;

    color: var(--ql-black);

    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ql-single-blog-page .ql-blog-opening > p {
    max-width: 800px;
    margin: 0 0 28px;

    color: var(--ql-text);

    font-size: 17px;
    line-height: 1.75;
}

.ql-single-blog-page .ql-blog-opening__image {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}

.ql-single-blog-page .ql-blog-opening__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}


/* =========================================================
   OPTIONAL SECTION CARD
========================================================= */

.ql-single-blog-page .ql-blog-section {
    margin: 34px 0;
    padding: 34px 36px;

    background: var(--ql-white);

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.ql-single-blog-page .ql-blog-section-heading {
    display: flex;
    align-items: flex-start;

    gap: 16px;
    margin-bottom: 22px;
}

.ql-single-blog-page .ql-blog-section-number {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--ql-yellow);
    color: var(--ql-black);

    border-radius: 4px;

    font-size: 16px;
    line-height: 1;
    font-weight: 700;
}

.ql-single-blog-page .ql-blog-section-heading h2 {
    margin: 4px 0 0;
    font-size: 28px;
}


/* =========================================================
   QUICK STAT
========================================================= */

.ql-single-blog-page .ql-blog-stat {
    margin: 35px 0;
    padding: 26px 28px;

    background: var(--ql-yellow);
    color: var(--ql-black);

    border-radius: 8px;
}

.ql-single-blog-page .ql-blog-stat strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.ql-single-blog-page .ql-blog-stat p {
    margin: 0;
    color: var(--ql-black);
    font-size: 16px;
}


/* =========================================================
   DEFAULT FAQ
========================================================= */

.ql-single-blog-page .ql-article-content .ql-blog-faq {
    width: 100%;
    margin: 55px 0 45px;
    padding: 0;
    background: transparent;
}

.ql-single-blog-page .ql-article-content .ql-blog-faq > h2 {
    margin: 0 0 24px;
    padding: 0;

    color: var(--ql-black);

    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;

    text-align: left;
}

.ql-single-blog-page .ql-article-content .ql-faq-list {
    width: 100%;
    margin: 0;
    padding: 0;

    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.ql-single-blog-page .ql-article-content .ql-faq-item {
    width: 100%;
    min-height: 0;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0;

    box-shadow: none;
}

.ql-single-blog-page .ql-article-content .ql-faq-item summary {
    width: 100%;
    margin: 0;
    padding: 17px 2px;

    display: block;

    color: var(--ql-black);
    background: transparent;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;

    cursor: pointer;
    list-style: none;

    box-shadow: none;
}

.ql-single-blog-page .ql-article-content .ql-faq-item summary::-webkit-details-marker {
    display: none;
}

.ql-single-blog-page .ql-article-content .ql-faq-answer {
    margin: 0;
    padding: 0 2px 18px;
}

.ql-single-blog-page .ql-article-content .ql-faq-answer p {
    margin: 0;
    padding: 0;

    color: var(--ql-text);

    font-size: 15.5px;
    line-height: 1.7;
}


/* =========================================================
   CTA / TAGS / NAV WIDTH
========================================================= */

.ql-single-blog-page .ql-article-cta,
.ql-single-blog-page .ql-post-navigation,
.ql-single-blog-page .ql-article-tags {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   SINGLE POST CTA
========================================================= */

.ql-single-blog-page .ql-article .ql-article__container .ql-article-cta {
    margin-top: 65px;
    padding: 42px 36px;

    background: var(--ql-yellow);

    border: 0;
    border-radius: 10px;

    text-align: center;
    box-shadow: none;
}

.ql-single-blog-page .ql-article-cta__eyebrow {
    display: block;
    margin: 0 0 8px;

    color: var(--ql-black);

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;

    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.ql-single-blog-page .ql-article-cta h2 {
    max-width: 650px;
    margin: 0 auto 14px;

    color: var(--ql-black);

    font-size: 30px;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.ql-single-blog-page .ql-article-cta p {
    max-width: 650px;
    margin: 0 auto 25px;

    color: rgba(0, 0, 0, 0.72);

    font-size: 16px;
    line-height: 1.7;
}

.ql-single-blog-page .ql-article-cta__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;
}

.ql-single-blog-page .ql-article-button,
.ql-single-blog-page .ql-article-button:link,
.ql-single-blog-page .ql-article-button:visited {
    min-width: 145px;
    padding: 11px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 4px;

    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.ql-single-blog-page .ql-article-button--dark {
    background: var(--ql-black);
    color: var(--ql-white);
    border: 1px solid var(--ql-black);
}

.ql-single-blog-page .ql-article-button--outline {
    background: transparent;
    color: var(--ql-black);
    border: 1px solid var(--ql-black);
}

@media (hover: hover) and (pointer: fine) {

    .ql-single-blog-page .ql-article-button--dark:hover {
        background: var(--ql-white);
        color: var(--ql-black);
        border-color: var(--ql-white);
        transform: translateY(-2px);
    }

    .ql-single-blog-page .ql-article-button--outline:hover {
        background: var(--ql-black);
        color: var(--ql-white);
        border-color: var(--ql-black);
        transform: translateY(-2px);
    }

}


/* =========================================================
   TAGS
========================================================= */

.ql-single-blog-page .ql-article-tags {
    margin-top: 28px;

    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}

.ql-single-blog-page .ql-article-tags a {
    padding: 8px 13px;

    background: rgba(0, 0, 0, 0.045);
    color: var(--ql-black);

    border-radius: 999px;

    font-size: 13px;
    line-height: 1.3;

    text-decoration: none;
}


/* =========================================================
   POST NAVIGATION
========================================================= */

.ql-single-blog-page .ql-article .ql-article__container .ql-post-navigation {
    margin-top: 55px;
    margin-bottom: 25px;
    padding: 28px 0 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;

    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.ql-single-blog-page .ql-post-navigation__prev {
    text-align: left;
}

.ql-single-blog-page .ql-post-navigation__next {
    text-align: right;
}

.ql-single-blog-page .ql-post-navigation a {
    display: block;
    color: var(--ql-black);
    text-decoration: none;
}

.ql-single-blog-page .ql-post-navigation a span {
    display: block;
    margin: 0 0 7px;

    color: rgba(0, 0, 0, 0.55);

    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;

    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ql-single-blog-page .ql-post-navigation a strong {
    display: block;
    margin: 0;

    color: var(--ql-black);

    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}


/* =========================================================
   ENHANCED CUSTOM LONG-FORM ARTICLE
========================================================= */

.ql-single-blog-page .ql-article-content .ql-blog-article {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background: var(--ql-white);
    color: var(--ql-text);
}

.ql-single-blog-page .ql-blog-article .ql-article-container,
.ql-single-blog-page .ql-blog-article .ql-article-container-wide {
    width: calc(100% - 48px);
    max-width: 852px;
    margin-left: auto;
    margin-right: auto;
}


/* CUSTOM ARTICLE HERO */

.ql-single-blog-page .ql-blog-article__hero {
    position: relative;
    overflow: hidden;

    width: 100%;
    margin: 0;
    padding: 82px 24px 76px;

    background:
        linear-gradient(
            135deg,
            rgba(8, 8, 8, 0.94),
            rgba(8, 8, 8, 0.78)
        ),
        url("https://qaushiklabs.com/wp-content/uploads/2026/09/seo-1024x683.png")
        center center / cover no-repeat;

    color: var(--ql-white);
    border-radius: 14px;
}

.ql-single-blog-page .ql-blog-article__hero-inner {
    width: min(980px, calc(100% - 20px));
    margin: 0 auto;
    text-align: center;
}

.ql-single-blog-page .ql-blog-article__hero .ql-eyebrow {
    display: inline-block;

    margin: 0 0 18px;
    padding: 7px 13px;

    background: var(--ql-yellow);
    color: var(--ql-black);

    border-radius: 999px;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ql-single-blog-page .ql-blog-article__hero h1 {
    max-width: 920px;
    margin: 0 auto 20px;

    color: var(--ql-white);

    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.07;
    font-weight: 700;
    letter-spacing: -1.2px;
}

.ql-single-blog-page .ql-blog-article__hero .ql-lead {
    max-width: 840px;
    margin: 0 auto;

    color: rgba(255, 255, 255, 0.92);

    font-size: 19px;
    line-height: 1.7;
}


/* CUSTOM ARTICLE SECTIONS */

.ql-single-blog-page .ql-blog-article .ql-section {
    width: 100%;
    margin: 0;
    padding: 58px 0;
}

.ql-single-blog-page .ql-blog-article .ql-section + .ql-section {
    border-top: 1px solid rgba(0, 0, 0, 0.045);
}

.ql-single-blog-page .ql-blog-article .ql-bg-light {
    background: #f8f8f8;
}

.ql-single-blog-page .ql-blog-article p {
    margin: 0 0 20px;
    color: var(--ql-text);

    font-size: 17px;
    line-height: 1.8;
}

.ql-single-blog-page .ql-blog-article h2 {
    margin: 0 0 18px;

    color: var(--ql-black);

    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ql-single-blog-page .ql-blog-article h3 {
    margin-top: 0;
    color: var(--ql-black);
}

.ql-single-blog-page .ql-blog-article .ql-section .ql-eyebrow,
.ql-single-blog-page .ql-blog-article .ql-toc .ql-eyebrow,
.ql-single-blog-page .ql-blog-article .ql-blog-faq .ql-eyebrow {
    display: inline-block;
    margin: 0 0 12px;

    color: rgba(0, 0, 0, 0.66);

    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}


/* CUSTOM ARTICLE LINKS */

.ql-single-blog-page .ql-blog-article a.ql-link {
    color: var(--ql-black);
    font-weight: 700;

    text-decoration: underline;
    text-decoration-color: var(--ql-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}


/* QUICK SUMMARY */

.ql-single-blog-page .ql-blog-article .ql-article-summary {
    margin: 0 0 30px;
    padding: 24px 27px;

    background: rgba(200, 163, 106, 0.12);

    border-left: 5px solid var(--ql-yellow);
    border-radius: 8px;
}

.ql-single-blog-page .ql-blog-article .ql-article-summary p {
    margin: 0;
}


/* INTRO GRID */

.ql-single-blog-page .ql-blog-article .ql-blog-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
    margin: 30px 0 0;
}

.ql-single-blog-page .ql-blog-article .ql-blog-intro-item {
    min-width: 0;
    padding: 20px;

    background: #f8f8f8;
    border-radius: 10px;
}

.ql-single-blog-page .ql-blog-article .ql-blog-intro-item strong {
    display: block;
    margin-bottom: 5px;

    color: var(--ql-black);

    font-size: 16px;
}

.ql-single-blog-page .ql-blog-article .ql-blog-intro-item span {
    color: var(--ql-text);

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   TABLE OF CONTENTS
========================================================= */

.ql-single-blog-page .ql-blog-article .ql-toc {
    width: 100%;
    margin: 0;
    padding: 52px 0;

    background: var(--ql-black);
    color: var(--ql-white);
}

.ql-single-blog-page .ql-blog-article .ql-toc h2 {
    color: var(--ql-white);
}

.ql-single-blog-page .ql-blog-article .ql-toc .ql-eyebrow {
    color: var(--ql-yellow);
}

.ql-single-blog-page .ql-blog-article .ql-toc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0 32px;

    margin: 26px 0 0;
    padding: 0;

    list-style: none;
    counter-reset: ql-blog-toc;
}

.ql-single-blog-page .ql-blog-article .ql-toc-grid li {
    margin: 0;
    padding: 0;

    list-style: none;
    counter-increment: ql-blog-toc;
}

.ql-single-blog-page .ql-blog-article .ql-toc-grid a {
    display: flex;
    gap: 11px;

    padding: 11px 0;

    color: rgba(255, 255, 255, 0.90);

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    text-decoration: none;
}

.ql-single-blog-page .ql-blog-article .ql-toc-grid a::before {
    content: counter(ql-blog-toc, decimal-leading-zero);

    flex: 0 0 auto;

    color: var(--ql-yellow);
    font-weight: 700;
}


/* =========================================================
   STANDARD ARTICLE GRIDS
========================================================= */

.ql-single-blog-page .ql-blog-article .ql-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
    margin: 28px 0 0;
}

.ql-single-blog-page .ql-blog-article .ql-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;
    margin: 28px 0 0;
}

.ql-single-blog-page .ql-blog-article .ql-card {
    min-width: 0;

    margin: 0;
    padding: 23px;

    background: var(--ql-white);

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 11px;

    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.03);
}

.ql-single-blog-page .ql-blog-article .ql-card h3 {
    margin: 0 0 9px;

    font-size: 19px;
    line-height: 1.35;
}

.ql-single-blog-page .ql-blog-article .ql-card p {
    margin-bottom: 0;

    font-size: 15.5px;
    line-height: 1.68;
}


/* =========================================================
   CITY CARDS
========================================================= */

.ql-single-blog-page .ql-blog-article .ql-blog-city-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;

    margin: 30px 0 0;
    padding: 0;

    align-items: stretch;
}

.ql-single-blog-page .ql-blog-article .ql-blog-city-card {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: var(--ql-white);
    color: var(--ql-black);

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;

    text-decoration: none;

    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);

    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ql-single-blog-page .ql-blog-article .ql-blog-city-card,
.ql-single-blog-page .ql-blog-article .ql-blog-city-card * {
    text-decoration: none;
}

.ql-single-blog-page .ql-blog-article .ql-blog-city-card__image {
    position: relative;

    width: 100%;
    height: 185px;
    flex: 0 0 185px;

    overflow: hidden;

    background: #eeeeee;
}

/* !important kept only here because the base article image rule sets height:auto */
.ql-single-blog-page .ql-blog-article .ql-blog-city-card__image img {
    position: absolute;
    inset: 0;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center;

    border-radius: 0;
}

.ql-single-blog-page .ql-blog-article .ql-blog-city-card__content {
    flex: 1;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 20px;
}

.ql-single-blog-page .ql-blog-article .ql-blog-city-card__content h3 {
    margin: 0 0 9px;

    font-size: 21px;
    line-height: 1.25;
}

.ql-single-blog-page .ql-blog-article .ql-blog-city-card__content p {
    margin: 0 0 15px;

    font-size: 14.5px;
    line-height: 1.6;
}

.ql-single-blog-page .ql-blog-article .ql-blog-city-card__cta {
    display: block;

    margin-top: auto;

    color: var(--ql-black);

    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.ql-single-blog-page .ql-blog-article .ql-blog-city-card__cta::after {
    content: " →";
}

@media (hover: hover) and (pointer: fine) {

    .ql-single-blog-page .ql-blog-article .ql-blog-city-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
    }

}


/* =========================================================
   COMPACT KEYWORD SECTIONS
========================================================= */

.ql-single-blog-page .ql-blog-article .ql-keyword-section {
    padding-top: 38px;
    padding-bottom: 38px;
}

.ql-single-blog-page .ql-blog-article .ql-keyword-section h2 {
    margin-bottom: 8px;
}

.ql-single-blog-page .ql-blog-article .ql-keyword-section-intro {
    max-width: 820px;

    margin: 0 0 16px;

    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   KEYWORD LIST
========================================================= */

.ql-single-blog-page .ql-blog-article ul.ql-keyword-list {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    column-gap: 38px;
    row-gap: 0;

    margin: 15px 0 0;
    padding: 0;

    list-style: none;
}

.ql-single-blog-page .ql-blog-article ul.ql-keyword-list > li {
    position: relative;

    min-width: 0;

    margin: 0;
    padding: 4px 4px 4px 14px;

    color: var(--ql-text);

    font-size: 14px;
    line-height: 1.35;

    border: 0;
    list-style: none;
}

.ql-single-blog-page .ql-blog-article ul.ql-keyword-list > li::before {
    content: "";

    position: absolute;
    left: 0;
    top: 10px;

    width: 5px;
    height: 5px;

    background: var(--ql-yellow);
    border-radius: 50%;
}


/* =========================================================
   CALLOUT
========================================================= */

.ql-single-blog-page .ql-blog-article .ql-blog-callout {
    margin: 30px 0 0;
    padding: 27px 29px;

    background: var(--ql-black);
    color: var(--ql-white);

    border-radius: 11px;
}

.ql-single-blog-page .ql-blog-article .ql-blog-callout h3 {
    margin: 0 0 9px;
    color: var(--ql-white);
}

.ql-single-blog-page .ql-blog-article .ql-blog-callout p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.ql-single-blog-page .ql-blog-article .ql-blog-callout p + p {
    margin-top: 12px;
}


/* =========================================================
   RESOURCE CARDS
========================================================= */

.ql-single-blog-page .ql-blog-article .ql-blog-resource-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
    margin: 26px 0 0;
}

.ql-single-blog-page .ql-blog-article .ql-blog-resource {
    min-width: 0;
    padding: 23px;

    background: #f8f8f8;
    border-radius: 10px;
}

.ql-single-blog-page .ql-blog-article .ql-blog-resource h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.ql-single-blog-page .ql-blog-article .ql-blog-resource p {
    margin-bottom: 12px;

    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   FAQ INSIDE CUSTOM ARTICLE
========================================================= */

.ql-single-blog-page .ql-blog-article .ql-blog-faq {
    width: 100%;

    margin: 0;
    padding: 60px 0;

    background: #f8f8f8;
}

.ql-single-blog-page .ql-blog-article .ql-blog-faq .ql-faq-list {
    display: grid;

    gap: 12px;

    margin: 28px 0 0;
    padding: 0;

    border-top: 0;
}

.ql-single-blog-page .ql-blog-article .ql-blog-faq .ql-faq-item {
    overflow: hidden;

    margin: 0;
    padding: 0;

    background: var(--ql-white);

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9px;
}

.ql-single-blog-page .ql-blog-article .ql-blog-faq .ql-faq-item summary {
    padding: 18px 21px;

    color: var(--ql-black);

    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;

    cursor: pointer;
}

.ql-single-blog-page .ql-blog-article .ql-blog-faq .ql-faq-item > p {
    margin: 0;
    padding: 0 21px 21px;

    font-size: 16px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .ql-single-blog-page .ql-article {
        padding: 60px 20px 100px;
    }

    .ql-single-blog-page .ql-article__container {
        width: min(720px, calc(100% - 40px));
    }

    .ql-single-blog-page .ql-article-content {
        max-width: none;
    }

    .ql-single-blog-page .ql-blog-article .ql-blog-city-grid,
    .ql-single-blog-page .ql-blog-article .ql-grid-3,
    .ql-single-blog-page .ql-blog-article .ql-blog-intro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ql-single-blog-page .ql-blog-article ul.ql-keyword-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ql-single-blog-page .ql-blog-article .ql-toc-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .ql-single-blog-page .ql-article {
        padding: 45px 14px 80px;
    }

    .ql-single-blog-page .ql-article__container,
    .ql-single-blog-page .ql-article-content {
        width: 100%;
        max-width: none;
    }

    .ql-single-blog-page .ql-blog-article__hero {
        padding: 58px 18px 54px;
        border-radius: 10px;
    }

    .ql-single-blog-page .ql-blog-article__hero h1 {
        font-size: 34px;
    }

    .ql-single-blog-page .ql-blog-article__hero .ql-lead {
        font-size: 16px;
    }

    .ql-single-blog-page .ql-blog-article .ql-section {
        padding: 46px 0;
    }

    .ql-single-blog-page .ql-blog-article .ql-keyword-section {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .ql-single-blog-page .ql-blog-article .ql-article-container,
    .ql-single-blog-page .ql-blog-article .ql-article-container-wide {
        width: 100%;
        max-width: 900px;
    }

    .ql-single-blog-page .ql-blog-article .ql-blog-city-grid,
    .ql-single-blog-page .ql-blog-article .ql-grid-3,
    .ql-single-blog-page .ql-blog-article .ql-grid-2,
    .ql-single-blog-page .ql-blog-article .ql-blog-intro-grid,
    .ql-single-blog-page .ql-blog-article .ql-blog-resource-links,
    .ql-single-blog-page .ql-blog-article ul.ql-keyword-list {
        grid-template-columns: 1fr;
    }

    .ql-single-blog-page .ql-blog-article .ql-blog-city-card__image {
        height: 205px;
        flex-basis: 205px;
    }

    .ql-single-blog-page .ql-article-content p {
        font-size: 16px;
        line-height: 1.75;
    }

    .ql-single-blog-page .ql-post-navigation {
        grid-template-columns: 1fr;
    }

    .ql-single-blog-page .ql-post-navigation__next {
        text-align: left;
    }

}

/* =========================================================
   ARTICLE LAYOUT CONSISTENCY
========================================================= */

/* Keep all custom article sections inside the natural WordPress post width. */
.ql-single-blog-page .ql-blog-article .ql-section > .ql-article-container,
.ql-single-blog-page .ql-blog-article .ql-section > .ql-article-container-wide,
.ql-single-blog-page .ql-blog-article .ql-toc > .ql-article-container,
.ql-single-blog-page .ql-blog-article .ql-toc > .ql-article-container-wide,
.ql-single-blog-page .ql-blog-article .ql-blog-faq > .ql-article-container,
.ql-single-blog-page .ql-blog-article .ql-blog-faq > .ql-article-container-wide {
    width: calc(100% - 48px);
    max-width: 852px;
    margin-left: auto;
    margin-right: auto;
}

/* Equal-height rows for all card groups. */
.ql-single-blog-page .ql-blog-article .ql-blog-intro-grid,
.ql-single-blog-page .ql-blog-article .ql-blog-city-grid,
.ql-single-blog-page .ql-blog-article .ql-grid-3,
.ql-single-blog-page .ql-blog-article .ql-grid-2,
.ql-single-blog-page .ql-blog-article .ql-blog-resource-links {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

/* Equal-height cards. */
.ql-single-blog-page .ql-blog-article .ql-blog-intro-item,
.ql-single-blog-page .ql-blog-article .ql-card,
.ql-single-blog-page .ql-blog-article .ql-blog-resource,
.ql-single-blog-page .ql-blog-article .ql-blog-city-card {
    width: 100%;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Keep last content block flush and CTA/link aligned. */
.ql-single-blog-page .ql-blog-article .ql-card p:last-child,
.ql-single-blog-page .ql-blog-article .ql-blog-intro-item span:last-child,
.ql-single-blog-page .ql-blog-article .ql-blog-resource p:last-child {
    margin-bottom: 0;
}

.ql-single-blog-page .ql-blog-article .ql-blog-resource a,
.ql-single-blog-page .ql-blog-article .ql-blog-city-card__cta {
    margin-top: auto;
}

/* Desktop: keep all 3-card layouts as 3 equal columns. */
@media (min-width: 901px) {
    .ql-single-blog-page .ql-blog-article .ql-blog-intro-grid,
    .ql-single-blog-page .ql-blog-article .ql-blog-city-grid,
    .ql-single-blog-page .ql-blog-article .ql-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tablet */
@media (max-width: 900px) and (min-width: 651px) {
    .ql-single-blog-page .ql-blog-article .ql-blog-intro-grid,
    .ql-single-blog-page .ql-blog-article .ql-blog-city-grid,
    .ql-single-blog-page .ql-blog-article .ql-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ql-single-blog-page .ql-blog-article .ql-grid-2,
    .ql-single-blog-page .ql-blog-article .ql-blog-resource-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 650px) {
    .ql-single-blog-page .ql-blog-article .ql-section > .ql-article-container,
    .ql-single-blog-page .ql-blog-article .ql-section > .ql-article-container-wide,
    .ql-single-blog-page .ql-blog-article .ql-toc > .ql-article-container,
    .ql-single-blog-page .ql-blog-article .ql-toc > .ql-article-container-wide,
    .ql-single-blog-page .ql-blog-article .ql-blog-faq > .ql-article-container,
    .ql-single-blog-page .ql-blog-article .ql-blog-faq > .ql-article-container-wide {
        width: calc(100% - 28px);
        max-width: none;
    }

    .ql-single-blog-page .ql-blog-article .ql-blog-intro-grid,
    .ql-single-blog-page .ql-blog-article .ql-blog-city-grid,
    .ql-single-blog-page .ql-blog-article .ql-grid-3,
    .ql-single-blog-page .ql-blog-article .ql-grid-2,
    .ql-single-blog-page .ql-blog-article .ql-blog-resource-links {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   COMPACT INSTAGRAM BIO EXAMPLE LISTS
========================================================= */

.ql-single-blog-page .ql-blog-article ul.ql-bio-example-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 22px;

    margin: 22px 0 0;
    padding: 0;

    list-style: none;
}

.ql-single-blog-page .ql-blog-article ul.ql-bio-example-list > li {
    position: relative;

    min-width: 0;
    margin: 0;
    padding: 28px 28px 28px 42px;

    background: #f8f8f8;

    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;

    color: var(--ql-text);

    font-size: 14.5px;
    line-height: 1.65;

    list-style: none;
}

.ql-single-blog-page .ql-blog-article ul.ql-bio-example-list > li::before {
    content: "";

    position: absolute;

    left: 20px;
    top: 36px;

    width: 6px;
    height: 6px;

    background: var(--ql-yellow);
    border-radius: 50%;
}

.ql-single-blog-page .ql-blog-article ul.ql-bio-example-list strong {
    color: var(--ql-black);
    font-weight: 700;
}

@media (max-width: 900px) {
    .ql-single-blog-page .ql-blog-article ul.ql-bio-example-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .ql-single-blog-page .ql-blog-article ul.ql-bio-example-list {
        grid-template-columns: 1fr;
    }

    .ql-single-blog-page .ql-blog-article ul.ql-bio-example-list > li {
        padding: 22px 20px 22px 32px;
    }

    .ql-single-blog-page .ql-blog-article ul.ql-bio-example-list > li::before {
        left: 14px;
        top: 30px;
    }
}

/* =========================================================
   FINAL INNER SPACING FIX
========================================================= */

@media (max-width: 650px) {
    .ql-single-blog-page .ql-blog-article .ql-section > .ql-article-container,
    .ql-single-blog-page .ql-blog-article .ql-section > .ql-article-container-wide,
    .ql-single-blog-page .ql-blog-article .ql-toc > .ql-article-container,
    .ql-single-blog-page .ql-blog-article .ql-toc > .ql-article-container-wide,
    .ql-single-blog-page .ql-blog-article .ql-blog-faq > .ql-article-container,
    .ql-single-blog-page .ql-blog-article .ql-blog-faq > .ql-article-container-wide {
        width: calc(100% - 32px);
        max-width: none;
    }

    .ql-single-blog-page .ql-blog-article ul.ql-bio-example-list > li {
        padding: 24px 22px 24px 38px;
    }

    .ql-single-blog-page .ql-blog-article ul.ql-bio-example-list > li::before {
        left: 18px;
        top: 32px;
    }
}


/* =========================================================
   LINKS INSIDE DARK BLOCKS
   Article links are ink-coloured for white backgrounds.
   Inside the dark callout and hero that hid the link text,
   leaving only the gold underline. Switch them to white.
   !important: global/theme link rules load with equal weight.
========================================================= */

.ql-single-blog-page :is(.ql-blog-callout, .ql-blog-article__hero, .ql-article-hero, .ql-dark-box)
a:not([class*="btn"], [class*="button"]),
.ql-single-blog-page .ql-article-content th a {
    color: var(--ql-white) !important;
    -webkit-text-fill-color: var(--ql-white) !important;
    text-decoration-line: underline !important;
    text-decoration-color: var(--ql-yellow) !important;
}

.ql-single-blog-page :is(.ql-blog-callout, .ql-blog-article__hero, .ql-article-hero, .ql-dark-box)
a:not([class*="btn"], [class*="button"]):is(:hover, :focus-visible),
.ql-single-blog-page .ql-article-content th a:is(:hover, :focus-visible) {
    color: var(--ql-yellow) !important;
    -webkit-text-fill-color: var(--ql-yellow) !important;
}