/* =====================================================
   QAUSHIK BLOG PAGE: gold & ink theme (Oct 2026)
   Same class names as before, so no template changes.
   Colours come from qaushik-global.css tokens.
===================================================== */

.ql-blog-page {
    --blog-ink: var(--ql-black, #14110E);
    --blog-gold: var(--ql-yellow, #C8A36A);
    --blog-gold-d: var(--ql-gold-deep, #9A7440);
    --blog-gold-l: #E3C99A;
    --blog-cream: var(--ql-surface-soft, #FBF8F3);
    --blog-line: var(--ql-border, #EAE2D5);
    --blog-body: #5C544A;
    --blog-muted: var(--ql-muted, #6E655A);
    --blog-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --blog-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    color: #2B2620;
    font-family: var(--blog-sans);
    -webkit-font-smoothing: antialiased;
    overflow: visible;
}

.ql-blog-page *,
.ql-blog-page *::before,
.ql-blog-page *::after {
    box-sizing: border-box;
}


/* =====================================================
   REMOVE GAP BETWEEN HEADER AND BLOG HERO
===================================================== */

/* Stops the 100vw hero/listing from causing a sideways scrollbar on Windows */
body:has(.ql-blog-page) {
    overflow-x: clip;
}

/* Only the wrappers AROUND the blog are reset - not the Elementor header/footer,
   and not the blog cards (which keep their own padding). */
body:has(.ql-blog-page) :is(#content, .site-content, .ast-container, #primary, .content-area, .site-main, .entry-content,
    .elementor, .elementor-section, .elementor-container, .elementor-element, .e-con, .e-con-inner,
    .elementor-widget-html, .elementor-widget-html > .elementor-widget-container, article:not(.ql-blog-card)):not(:is(header, footer, .elementor-location-header, .elementor-location-footer) *):not(.elementor-location-header, .elementor-location-footer),
body:has(.ql-blog-page) :is(#content, .site-content, .ast-container, #primary, .content-area, .site-main) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body:has(.ql-blog-page) .site-content > .ast-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:has(.ql-blog-page) .elementor-widget-html,
body:has(.ql-blog-page) .elementor-widget-html > .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body:has(.ql-blog-page) .elementor-widget-html {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

body:has(.ql-blog-page) .ql-blog-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body:has(.ql-blog-page) .ql-blog-page > section:first-child {
    margin-top: 0 !important;
}


/* =====================================================
   BLOG HERO: dark, image-free, matches site heroes
===================================================== */

.ql-blog-page .ql-blog-hero {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-top: 0 !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 0;
    padding: 84px 24px 88px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(520px 320px at 88% 0%, rgba(200, 163, 106, .28), transparent 70%),
        radial-gradient(420px 300px at 0% 100%, rgba(200, 163, 106, .14), transparent 70%),
        #14110E;
    overflow: hidden;
}

/* faint grid, same as the homepage hero */
.ql-blog-page .ql-blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(247, 243, 236, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 243, 236, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 0%, transparent 75%);
}

.ql-blog-page .ql-blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.ql-blog-page .ql-blog-hero__container {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}

.ql-blog-page .ql-blog-hero h1 {
    margin: 0 0 16px;
    color: #F7F3EC;
    font-family: var(--blog-serif);
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Optional: wrap a word in <em> for the gold italic accent */
.ql-blog-page .ql-blog-hero h1 em {
    font-style: italic;
    color: var(--blog-gold-l);
}

.ql-blog-page .ql-blog-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(247, 243, 236, 0.78);
    font-size: 18px;
    line-height: 1.65;
    font-weight: 400;
}


/* =====================================================
   BLOG LISTING
===================================================== */

.ql-blog-page .ql-blog-listing {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 80px 24px 100px;
    background: var(--blog-cream);
}

.ql-blog-page .ql-blog-listing__container {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 360px);
    gap: 48px;
    align-items: start;
}

.ql-blog-page .ql-blog-main {
    width: 100%;
    min-width: 0;
}


/* =====================================================
   BLOG CARD: white card on cream
===================================================== */

.ql-blog-page .ql-blog-card {
    margin: 0 0 28px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--blog-line);
    border-radius: 22px;
    box-shadow: 0 18px 40px -30px rgba(20, 17, 14, .35);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ql-blog-page .ql-blog-card:last-child {
    margin-bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
    .ql-blog-page .ql-blog-card:hover {
        transform: translateY(-3px);
        border-color: #DCCBAE;
        box-shadow: 0 26px 50px -30px rgba(20, 17, 14, .45);
    }
}


/* =====================================================
   BLOG TITLE
===================================================== */

.ql-blog-page .ql-blog-card h2 {
    margin: 0 0 12px;
    font-family: var(--blog-serif);
    font-size: clamp(23px, 2vw, 30px);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.ql-blog-page .ql-blog-card h2 a,
.ql-blog-page .ql-blog-card h2 a:link,
.ql-blog-page .ql-blog-card h2 a:visited,
.ql-blog-page .ql-blog-card h2 a:focus,
.ql-blog-page .ql-blog-card h2 a:active {
    display: inline;
    color: var(--blog-ink) !important;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: none !important;
    text-decoration-line: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transition: color .2s ease !important;
}

.ql-blog-page .ql-blog-card h2 a:hover {
    color: var(--blog-gold-d) !important;
    text-decoration: none !important;
}


/* =====================================================
   BLOG META
===================================================== */

.ql-blog-page .ql-blog-meta {
    margin: 0 0 22px;
    color: var(--blog-muted);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: .04em;
}

.ql-blog-page .ql-blog-meta a,
.ql-blog-page .ql-blog-meta a:link,
.ql-blog-page .ql-blog-meta a:visited,
.ql-blog-page .ql-blog-meta a:focus,
.ql-blog-page .ql-blog-meta a:active {
    color: var(--blog-gold-d) !important;
    font-weight: 600;
    text-decoration: none !important;
    text-decoration-line: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.ql-blog-page .ql-blog-meta a:hover {
    color: var(--blog-ink) !important;
}


/* =====================================================
   BLOG CARD CONTENT
===================================================== */

.ql-blog-page .ql-blog-card__content {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.ql-blog-page .ql-blog-card__image {
    width: 100%;
}

.ql-blog-page .ql-blog-card__image a,
.ql-blog-page .ql-blog-card__image a:link,
.ql-blog-page .ql-blog-card__image a:visited,
.ql-blog-page .ql-blog-card__image a:hover,
.ql-blog-page .ql-blog-card__image a:focus {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    text-decoration: none !important;
}

.ql-blog-page .ql-blog-card__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
    transition: transform .35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .ql-blog-page .ql-blog-card:hover .ql-blog-card__image img {
        transform: scale(1.03);
    }
}

.ql-blog-page .ql-blog-card__text {
    min-width: 0;
}

.ql-blog-page .ql-blog-card__text p {
    margin: 0 0 20px; /* top margin 0 also overrides theme paragraph spacing */
    color: var(--blog-body);
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
}


/* =====================================================
   CONTINUE READING BUTTON: gold pill
===================================================== */

.ql-blog-page .ql-blog-btn,
.ql-blog-page .ql-blog-btn:link,
.ql-blog-page .ql-blog-btn:visited {
    min-width: 0;
    padding: 11px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--blog-gold);
    color: var(--blog-ink) !important;
    border: 1px solid var(--blog-gold);
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none !important;
    text-decoration-line: none !important;
    box-shadow: none;
    transform: none;
    transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}

.ql-blog-page .ql-blog-btn span {
    color: inherit !important;
    font-size: 16px;
    line-height: 1;
    text-decoration: none !important;
}

@media (hover: hover) and (pointer: fine) {
    .ql-blog-page .ql-blog-btn:hover {
        background: var(--blog-ink) !important;
        color: #F7F3EC !important;
        border-color: var(--blog-ink) !important;
        transform: translateY(-2px);
        text-decoration: none !important;
    }
}

.ql-blog-page .ql-blog-btn:focus-visible {
    outline: 3px solid var(--blog-gold);
    outline-offset: 3px;
}


/* =====================================================
   SIDEBAR
===================================================== */

.ql-blog-page .ql-blog-sidebar {
    width: 100%;
    position: sticky;
    top: calc(var(--ql-header-h, 0px) + 24px);
}

.ql-blog-page .ql-blog-sidebar__box {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--blog-line);
    border-radius: 22px;
}

/* Heading: gold eyebrow rule + serif title, no yellow block */
.ql-blog-page .ql-blog-sidebar__box h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding: 0 0 16px;
    background: transparent;
    color: var(--blog-ink);
    border-bottom: 1px solid var(--blog-line);
    border-radius: 0;
    text-align: left;
    font-family: var(--blog-serif);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 500;
}

.ql-blog-page .ql-blog-sidebar__box h3::before {
    content: "";
    flex: 0 0 26px;
    height: 1px;
    background: var(--blog-gold);
}

.ql-blog-page .ql-blog-sidebar__box + .ql-blog-sidebar__box {
    margin-top: 24px;
}


/* =====================================================
   SIDEBAR POSTS
===================================================== */

.ql-blog-page .ql-sidebar-post {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--blog-line);
}

.ql-blog-page .ql-sidebar-post:last-child {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

.ql-blog-page .ql-sidebar-post__image,
.ql-blog-page .ql-sidebar-post__image:link,
.ql-blog-page .ql-sidebar-post__image:visited,
.ql-blog-page .ql-sidebar-post__image:hover,
.ql-blog-page .ql-sidebar-post__image:focus {
    display: block;
    flex: 0 0 82px;
    width: 82px;
    height: 64px;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none !important;
    transition: none !important;
}

.ql-blog-page .ql-sidebar-post__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.ql-blog-page .ql-sidebar-post__content {
    min-width: 0;
}

.ql-blog-page .ql-sidebar-post__title,
.ql-blog-page .ql-sidebar-post__title:link,
.ql-blog-page .ql-sidebar-post__title:visited,
.ql-blog-page .ql-sidebar-post__title:focus,
.ql-blog-page .ql-sidebar-post__title:active {
    display: block;
    color: var(--blog-ink) !important;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    text-decoration: none !important;
    text-decoration-line: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transition: color .2s ease !important;
}

.ql-blog-page .ql-sidebar-post__title:hover {
    color: var(--blog-gold-d) !important;
}

.ql-blog-page .ql-sidebar-post__date {
    display: block;
    margin-top: 5px;
    color: var(--blog-muted);
    font-size: 12px;
    letter-spacing: .04em;
    opacity: 1;
}


/* =====================================================
   TOPIC / SERVICE LINKS
===================================================== */

.ql-blog-page .ql-blog-topic-links {
    display: flex;
    flex-direction: column;
}

.ql-blog-page .ql-blog-topic-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--blog-line);
    color: var(--blog-ink) !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    transition: color .2s ease, padding-left .2s ease;
}

.ql-blog-page .ql-blog-topic-links a::after {
    content: "→";
    color: var(--blog-gold);
    transition: transform .2s ease;
}

.ql-blog-page .ql-blog-topic-links a:hover {
    color: var(--blog-gold-d) !important;
}

.ql-blog-page .ql-blog-topic-links a:hover::after {
    transform: translateX(3px);
}

.ql-blog-page .ql-blog-topic-links a:last-child {
    border-bottom: 0;
}


/* =====================================================
   PAGINATION
===================================================== */

.ql-blog-page .ql-blog-pagination {
    margin-top: 40px;
}

.ql-blog-page .ql-blog-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ql-blog-page .ql-blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--blog-line);
    border-radius: 999px;
    color: var(--blog-ink) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color .2s ease, background-color .2s ease;
}

.ql-blog-page .ql-blog-pagination a.page-numbers:hover {
    border-color: var(--blog-gold);
}

.ql-blog-page .ql-blog-pagination .page-numbers.current {
    background: var(--blog-ink);
    border-color: var(--blog-ink);
    color: var(--blog-gold-l) !important;
}

.ql-blog-page .ql-blog-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}


/* =====================================================
   MISC
===================================================== */

.ql-blog-page a,
.ql-blog-page a:link,
.ql-blog-page a:visited,
.ql-blog-page a:hover,
.ql-blog-page a:focus,
.ql-blog-page a:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

.ql-blog-page a:focus-visible {
    outline: 3px solid var(--blog-gold);
    outline-offset: 3px;
}

.ql-blog-page .ql-blog-meta-category {
    margin-left: 4px;
}

.ql-blog-page .ql-blog-empty {
    padding: 40px 0;
    color: var(--ql-muted, #6E655A);
}


/* =====================================================
   LAPTOP
===================================================== */

@media (max-width: 1200px) {
    .ql-blog-page .ql-blog-hero {
        min-height: 0;
        padding: 72px 20px 76px !important;
    }

    .ql-blog-page .ql-blog-listing {
        padding: 70px 20px 90px;
    }

    .ql-blog-page .ql-blog-listing__container {
        width: min(1080px, calc(100% - 40px));
        gap: 36px;
    }

    .ql-blog-page .ql-blog-card__content {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {
    .ql-blog-page .ql-blog-hero {
        min-height: 0;
        padding: 60px 20px 64px !important;
    }

    .ql-blog-page .ql-blog-hero p {
        font-size: 17px;
    }

    .ql-blog-page .ql-blog-listing {
        padding: 60px 20px 80px;
    }

    .ql-blog-page .ql-blog-listing__container {
        width: min(720px, calc(100% - 40px));
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ql-blog-page .ql-blog-sidebar {
        position: static;
    }

    .ql-blog-page .ql-blog-card__content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ql-blog-page .ql-blog-card__image {
        max-width: none;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 620px) {
    .ql-blog-page .ql-blog-hero {
        min-height: 0;
        padding: 48px 16px 52px !important;
    }

    .ql-blog-page .ql-blog-hero__container {
        width: 100%;
    }

    .ql-blog-page .ql-blog-hero h1 {
        margin-bottom: 10px;
        font-size: 32px;
    }

    .ql-blog-page .ql-blog-hero p {
        font-size: 15px;
        line-height: 1.65;
    }

    .ql-blog-page .ql-blog-listing {
        padding: 40px 16px 60px;
    }

    .ql-blog-page .ql-blog-listing__container {
        width: 100%;
        gap: 28px;
    }

    .ql-blog-page .ql-blog-card {
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 18px;
    }

    .ql-blog-page .ql-blog-card h2 {
        font-size: 23px;
    }

    .ql-blog-page .ql-blog-meta {
        margin-bottom: 16px;
        font-size: 12.5px;
    }

    .ql-blog-page .ql-blog-card__text p {
        font-size: 15.5px;
        line-height: 1.7;
    }

    .ql-blog-page .ql-blog-sidebar__box {
        padding: 20px;
        border-radius: 18px;
    }

    .ql-blog-page .ql-blog-sidebar__box h3 {
        font-size: 20px;
    }

    .ql-blog-page .ql-sidebar-post__image,
    .ql-blog-page .ql-sidebar-post__image:hover {
        flex-basis: 75px;
        width: 75px;
        height: 60px;
    }
}

@media (max-width: 380px) {
    .ql-blog-page .ql-blog-hero h1 {
        font-size: 28px;
    }

    .ql-blog-page .ql-blog-card h2 {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ql-blog-page .ql-blog-card,
    .ql-blog-page .ql-blog-card__image img,
    .ql-blog-page .ql-blog-btn {
        transition: none !important;
        transform: none !important;
    }
}

/* Links inside dark boxes are handled site-wide in qaushik-global.css
   ("LINKS ON DARK BACKGROUNDS"). */