/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  GeneratePress Child Theme for QuickBill
 Author:        QuickBill
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  generatepress-child
*/

/* ===================================================
   TOP BAR / SECONDARY MENU
   Uses the same CSS variables as the GeneratePress theme
   so it automatically inherits whatever colors are set
   in Appearance > Customizer > Colors.
   =================================================== */

#qb-top-bar {
    background-color: var(--base-3, #ffffff);
    border-bottom: 1px solid var(--base, #f0f0f0);
    font-size: 13px;
    line-height: 1;
}

#qb-top-bar .qb-top-bar-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Secondary nav menu ── */
#qb-top-bar .secondary-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
}

#qb-top-bar .secondary-nav li {
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}

#qb-top-bar .secondary-nav > li > a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    min-height: 38px;
    color: var(--contrast, #222222);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.15s ease;
    white-space: nowrap;
}

#qb-top-bar .secondary-nav > li > a:hover {
    color: var(--accent, #1e73be);
}

/* Active / current page item */
#qb-top-bar .secondary-nav li.current-menu-item > a,
#qb-top-bar .secondary-nav li.current-page-ancestor > a,
#qb-top-bar .secondary-nav li.current-menu-ancestor > a {
    color: var(--accent, #1e73be);
    border-bottom-color: var(--accent, #1e73be);
}

/* Drop-down arrow for parent items */
#qb-top-bar .secondary-nav li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.6;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

#qb-top-bar .secondary-nav li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── Dropdown sub-menu ── */
#qb-top-bar .secondary-nav ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--base-3, #ffffff);
    border: 1px solid var(--base, #f0f0f0);
    border-top: 2px solid var(--accent, #1e73be);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 180px;
    z-index: 99999;
}

#qb-top-bar .secondary-nav li:hover > ul.sub-menu {
    display: block;
}

#qb-top-bar .secondary-nav ul.sub-menu li {
    display: block;
}

#qb-top-bar .secondary-nav ul.sub-menu li a {
    display: block;
    padding: 9px 18px;
    color: var(--contrast, #222222);
    text-decoration: none;
    font-size: 13px;
    border-bottom: none;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

#qb-top-bar .secondary-nav ul.sub-menu li a:hover {
    color: var(--accent, #1e73be);
    background-color: var(--base-2, #f7f8f9);
}

#qb-top-bar .secondary-nav ul.sub-menu li.current-menu-item > a {
    color: var(--accent, #1e73be);
}

/* ── Responsive: horizontally scrollable on mobile ── */
@media (max-width: 768px) {
    #qb-top-bar .qb-top-bar-inner {
        padding: 0;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
        scrollbar-width: none;            /* hide scrollbar Firefox */
        -ms-overflow-style: none;         /* hide scrollbar IE/Edge */
    }

    /* hide scrollbar Chrome/Safari */
    #qb-top-bar .qb-top-bar-inner::-webkit-scrollbar {
        display: none;
    }

    #qb-top-bar .secondary-nav {
        flex-wrap: nowrap;      /* keep all items on one line */
        padding: 0 16px;
        width: max-content;     /* let the row grow as wide as needed */
    }

    #qb-top-bar .secondary-nav > li > a {
        padding: 0 12px;
        font-size: 12.5px;
        white-space: nowrap;
    }
}


/* ===================================================
   FRONT PAGE — BLOG SECTION
   =================================================== */

.qb-blog-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--base, #f0f0f0);
}

.qb-blog-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--contrast, #222222);
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

/* 3-column card grid */
.qb-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

/* Individual post card */
.qb-blog-card {
    background-color: var(--base-3, #ffffff);
    border: 1px solid var(--base, #f0f0f0);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.qb-blog-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Thumbnail */
.qb-blog-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.qb-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.qb-blog-card:hover .qb-blog-thumb img {
    transform: scale(1.04);
}

/* Card body */
.qb-blog-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.qb-blog-date {
    font-size: 11.5px;
    color: var(--contrast-3, #b2b2be);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qb-blog-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: var(--contrast, #222222);
}

.qb-blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.qb-blog-title a:hover {
    color: var(--accent, #1e73be);
}

.qb-blog-excerpt {
    font-size: 13.5px;
    color: var(--contrast-2, #575760);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.qb-blog-readmore {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent, #1e73be);
    text-decoration: none;
    margin-top: 4px;
    transition: opacity 0.15s ease;
    align-self: flex-start;
}

.qb-blog-readmore:hover {
    opacity: 0.75;
}

/* View all button */
.qb-blog-more-wrap {
    text-align: center;
}

.qb-blog-more-btn {
    display: inline-block;
    padding: 10px 28px;
    background-color: var(--accent, #1e73be);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.qb-blog-more-btn:hover {
    opacity: 0.88;
    color: #ffffff;
}

/* Responsive blog grid */
@media (max-width: 900px) {
    .qb-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .qb-blog-grid {
        grid-template-columns: 1fr;
    }

    .qb-blog-heading {
        font-size: 19px;
    }
}

/* ===================================================
   CONTAINER WIDTH — match top bar (1200px)
   =================================================== */

/* Main site-wide container */
.grid-container {
    max-width: 1200px !important;
}

/* ===================================================
   HEADER AND LOGO ADJUSTMENTS
   =================================================== */

.inside-header,
.inside-header.grid-container {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    max-width: 1200px !important; /* Match the top bar width */
}

.inside-header .site-logo {
    margin: 0;
    padding: 0;
}

.inside-header .site-logo img {
    display: block;
    margin: 0; /* Remove auto to left align properly */
}

/* ===================================================
   QUICKBILL HOMEPAGE — page-home.php
   Only card grid + FAQ need custom CSS.
   Everything else uses native GP styles.
   =================================================== */

/* ── Card grid ── */
.qbh-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 1.5em;
}

.qbh-card-grid--gas {
    grid-template-columns: repeat(2, minmax(140px, 200px));
}

.qbh-card {
    display: block;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

.qbh-card:hover {
    border-color: rgba(0, 0, 0, 0.35);
    color: inherit;
}

.qbh-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.qbh-card-sub {
    font-size: 11.5px;
    opacity: 0.6;
    display: block;
    line-height: 1.35;
}

/* Old FAQ accordion styles removed — see bottom of file for active FAQ styles */

/* ── Responsive ── */
@media (max-width: 768px) {
    .qbh-card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 500px) {
    .qbh-card-grid { grid-template-columns: repeat(2, 1fr); }
    .qbh-card-grid--gas { grid-template-columns: repeat(2, 1fr); }
}




.qbh-intro-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.25;
}

.qbh-intro-sub {
    font-size: 15px;
    margin: 0 0 14px;
    line-height: 1.65;
    max-width: 600px;
}

.qbh-skip-link {
    font-size: 14px;
}

/* ── Sections ── */
.qbh-section {
    padding: 32px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.qbh-section:last-child {
    border-bottom: none;
}

.qbh-section-heading {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 6px;
    line-height: 1.2;
}

.qbh-section-desc {
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.6;
    opacity: 0.75;
}

.qbh-gas-heading {
    margin-top: 36px;
}

/* ── Utility card grid ── */
.qbh-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 4px;
}

.qbh-card-grid--gas {
    grid-template-columns: repeat(2, minmax(140px, 200px));
    justify-content: start;
}

/* Card — uses theme's default border/bg, link colour on hover */
.qbh-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 12px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

.qbh-card:hover {
    border-color: currentColor;
    text-decoration: none;
    color: inherit;
}

.qbh-card-abbr {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
    color: inherit;
}

.qbh-card-full {
    font-size: 11.5px;
    line-height: 1.4;
    opacity: 0.6;
}

.qbh-card-cta {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    opacity: 0;
    transition: opacity 0.15s;
}

.qbh-card:hover .qbh-card-cta {
    opacity: 1;
}

/* ── How it works ── */
.qbh-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 600px;
}

.qbh-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* Step number circle — uses theme's <a> colour automatically */
.qbh-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 2px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-top: 2px;
    color: inherit;
    opacity: 0.7;
}

.qbh-step strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.qbh-step p {
    font-size: 13.5px;
    margin: 0;
    line-height: 1.6;
    opacity: 0.75;
}

/* ── Blog cards ── */
.qbh-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 14px;
}

.qbh-blog-card {
    border: 1px solid rgba(0, 0, 0, 0.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s;
}

.qbh-blog-card:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

.qbh-blog-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
}

.qbh-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.qbh-blog-card:hover .qbh-blog-thumb img {
    transform: scale(1.03);
}

.qbh-blog-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.qbh-blog-meta {
    font-size: 12px;
    opacity: 0.55;
}

.qbh-blog-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    line-height: 1.35;
}

/* ── FAQ ── */
.qbh-faq-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qbh-faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.qbh-faq-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.qbh-faq-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 14px 0;
    text-align: left;
    font-size: 14.5px;
    font-weight: normal;
    color: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    line-height: 1.4;
}

.qbh-faq-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.5;
    transition: transform 0.2s;
}

.qbh-faq-btn[aria-expanded="true"] .qbh-faq-icon {
    transform: rotate(45deg);
    opacity: 1;
}

.qbh-faq-answer {
    font-size: 13.5px;
    line-height: 1.7;
    padding: 0 0 14px;
    margin: 0;
    opacity: 0.8;
}

/* ── Responsive ── */
@media (max-width: 782px) {
    .qbh-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .qbh-card-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 500px) {
    .qbh-intro-title { font-size: 22px; }
    .qbh-card-grid   { grid-template-columns: repeat(2, 1fr); }
    .qbh-card-grid--gas { grid-template-columns: repeat(2, 1fr); }
    .qbh-blog-grid   { grid-template-columns: 1fr; }
    .qbh-section     { padding: 24px 0; }
}


/* ── Strip GP wrapper chrome on the homepage only ── */
.page-template-page-home .entry-header,
.page-template-page-home .entry-footer,
.page-template-page-home .post-navigation {
    display: none !important;
}
.page-template-page-home .entry-content,
.page-template-page-home .inside-article {
    padding: 0 !important;
    margin: 0 !important;
}
.page-template-page-home .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Shared section spacing (matches GP page padding) ── */
.qbh-section {
    padding: 48px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.qbh-section:last-child {
    border-bottom: none;
}

/* Alternate section background — subtle, same as GP widget areas */
.qbh-section:nth-child(even) {
    background-color: var(--base-2, #f5f5f5);
}

/* ── Section headings — match GP h2 style ── */
.qbh-section-heading {
    font-size: 24px;
    font-weight: normal;
    margin: 0 0 8px;
    color: var(--contrast, #222);
    display: flex;
    align-items: center;
    gap: 8px;
}

.qbh-heading-icon {
    font-size: 22px;
    line-height: 1;
}

.qbh-section-desc {
    font-size: 15px;
    color: var(--contrast-2, #575760);
    margin: 0 0 28px;
    line-height: 1.6;
}

.qbh-gas-heading {
    margin-top: 48px;
}

/* ── INTRO SECTION ── */
.qbh-intro {
    padding: 40px 0 36px;
    border-bottom: 3px solid var(--accent, #1e73be);
}

.qbh-intro-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 12px;
    color: var(--contrast, #222);
    line-height: 1.25;
}

.qbh-intro-sub {
    font-size: 16px;
    color: var(--contrast-2, #575760);
    max-width: 640px;
    line-height: 1.65;
    margin: 0 0 20px;
}

/* ── CTA link — inherits the GP link/accent colour ── */
.qbh-cta-link {
    color: var(--accent, #1e73be);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}
.qbh-cta-link:hover {
    opacity: 0.75;
    color: var(--accent, #1e73be);
}

/* ── UTILITY CARD GRID ── */
.qbh-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
    margin-bottom: 12px;
}

/* Gas grid — 2 wide */
.qbh-card-grid--gas {
    grid-template-columns: repeat(2, minmax(170px, 240px));
    justify-content: start;
}

/* Card — polished with left accent border */
.qbh-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px 16px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--accent, #1e73be);
    border-radius: 6px;
    background: var(--base-3, #fff);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.qbh-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent, #1e73be);
    border-color: var(--accent, #1e73be);
    text-decoration: none;
    color: inherit;
}

.qbh-card:visited {
    color: inherit;
}

.qbh-card-abbr {
    font-size: 17px;
    font-weight: 700;
    color: var(--contrast, #222);
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.qbh-card-full {
    font-size: 12px;
    color: var(--contrast-2, #575760);
    line-height: 1.45;
}

.qbh-card-action {
    font-size: 12px;
    color: var(--accent, #1e73be);
    font-weight: 600;
    margin-top: 8px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.qbh-card:hover .qbh-card-action {
    opacity: 1;
    transform: translateX(0);
}

/* ── BILLING GUIDE INFO BOXES ── */
.qbh-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0 8px;
}

@media (max-width: 640px) {
    .qbh-guide-grid {
        grid-template-columns: 1fr;
    }
}

.qbh-guide-box {
    padding: 24px 22px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--base-3, #fff);
    transition: box-shadow 0.2s ease;
}

.qbh-guide-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.qbh-guide-box-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}

.qbh-guide-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--contrast, #222);
}

.qbh-guide-box p {
    font-size: 14px;
    color: var(--contrast-2, #575760);
    line-height: 1.65;
    margin: 0;
}

.qbh-guide-box ul {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 13.5px;
    color: var(--contrast-2, #575760);
    line-height: 1.7;
}

.qbh-guide-box ul li {
    margin-bottom: 4px;
}

/* ── HOW IT WORKS ── */

.qbh-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 680px;
}

.qbh-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.qbh-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: var(--accent, #1e73be);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.qbh-step strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--contrast, #222);
}

.qbh-step p {
    font-size: 14px;
    color: var(--contrast-2, #575760);
    margin: 0;
    line-height: 1.6;
}

/* ── BLOG CARDS ── */
.qbh-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.qbh-blog-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    background: var(--base-3, #fff);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.qbh-blog-card:hover {
    border-color: var(--accent, #1e73be);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qbh-blog-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--base-2, #f5f5f5);
}

.qbh-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.qbh-blog-card:hover .qbh-blog-thumb img {
    transform: scale(1.03);
}

.qbh-blog-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    min-height: 120px;
}

.qbh-blog-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.qbh-blog-date {
    font-size: 12px;
    color: var(--contrast-2, #575760);
}

.qbh-blog-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
    line-height: 1.35;
    color: var(--contrast, #222);
}

.qbh-blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.qbh-blog-title a:hover {
    color: var(--accent, #1e73be);
}

.qbh-blog-excerpt {
    font-size: 13.5px;
    color: var(--contrast-2, #575760);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.qbh-blog-readmore {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent, #1e73be);
    text-decoration: none;
    margin-top: 6px;
    transition: opacity 0.15s;
    align-self: flex-start;
}

.qbh-blog-readmore:hover {
    opacity: 0.75;
    color: var(--accent, #1e73be);
}

.qbh-view-all {
    margin: 0;
    text-align: left;
}

/* ── FAQ — Card-style accordion ── */
.qbh-faq-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qbh-faq-item {
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 8px;
    background: var(--base-3, #fff);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qbh-faq-item:hover {
    border-color: rgba(0, 0, 0, 0.18);
}

/* Active/open state */
.qbh-faq-item--open {
    border-color: var(--accent, #1e73be);
    border-left: 3px solid var(--accent, #1e73be);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.qbh-faq-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--contrast, #222);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s ease, background-color 0.2s ease;
    font-family: inherit;
    line-height: 1.45;
}

.qbh-faq-btn:hover {
    color: var(--accent, #1e73be);
    background-color: rgba(0, 0, 0, 0.015);
}

.qbh-faq-btn[aria-expanded="true"] {
    color: var(--accent, #1e73be);
    background-color: rgba(0, 0, 0, 0.02);
}

/* Toggle icon — circle with +/- */
.qbh-faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--accent, #1e73be);
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.2s ease;
}

.qbh-faq-btn[aria-expanded="true"] .qbh-faq-toggle {
    transform: rotate(45deg);
    background-color: var(--accent, #1e73be);
}

/* Answer area — smooth reveal */
.qbh-faq-answer {
    font-size: 14.5px;
    color: var(--contrast-2, #575760);
    line-height: 1.75;
    padding: 0 20px 20px;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.qbh-faq-answer p {
    margin: 0;
    padding-top: 14px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .qbh-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .qbh-intro-title { font-size: 24px; }
    .qbh-card-grid { grid-template-columns: repeat(2, 1fr); }
    .qbh-card-grid--gas { grid-template-columns: repeat(2, 1fr); }
    .qbh-blog-grid { grid-template-columns: 1fr; }
    .qbh-section { padding: 32px 0; }
}

/* ── SIDEBAR: Recent Posts Widget ── */
.qbw-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qbw-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.qbw-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.qbw-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.qbw-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.qbw-post-item:hover .qbw-post-thumb img {
    transform: scale(1.08);
}

.qbw-post-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.qbw-post-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--contrast, #222);
    text-decoration: none;
    transition: color 0.15s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qbw-post-title:hover {
    color: var(--accent, #1e73be);
}

.qbw-post-date {
    font-size: 11.5px;
    color: var(--contrast-2, #575760);
    line-height: 1;
}

/* ── SIDEBAR: Calculator Links Widget ── */
.qbw-calc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qbw-calc-item {
    margin: 0;
    padding: 0;
}

.qbw-calc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--base-3, #fff);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.qbw-calc-link:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: var(--qbw-calc-color, var(--accent, #1e73be));
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
}

.qbw-calc-link:visited {
    color: inherit;
}

/* Company badge — colored circle with initials */
.qbw-calc-badge {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: var(--qbw-calc-color, var(--accent, #1e73be));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.qbw-calc-link:hover .qbw-calc-badge {
    transform: scale(1.08);
}

.qbw-calc-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.qbw-calc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--contrast, #222);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qbw-calc-sub {
    font-size: 11px;
    color: var(--contrast-2, #575760);
    line-height: 1.2;
}

.qbw-calc-arrow {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--qbw-calc-color, var(--accent, #1e73be));
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.qbw-calc-link:hover .qbw-calc-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ===================================================
   RANK MATH FAQ BLOCK — Minimal Accordion
   SEO schema is handled by Rank Math automatically.
   =================================================== */

.rank-math-block {
    margin: 24px 0;
    padding: 0;
}

.rank-math-block ol,
.rank-math-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rank-math-block .rank-math-list-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    list-style: none;
}

.rank-math-block .rank-math-list-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.rank-math-block .rank-math-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 0;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--contrast, #222);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: color 0.15s ease;
}

.rank-math-block .rank-math-question:hover,
.rank-math-block .rank-math-list-item.rm-faq-open .rank-math-question {
    color: var(--accent, #1e73be);
}

/* Simple chevron arrow */
.rank-math-block .rank-math-question::after {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    transition: transform 0.2s ease;
}

.rank-math-block .rank-math-list-item.rm-faq-open .rank-math-question::after {
    transform: rotate(180deg);
}

/* Answer — height driven by JS for smooth transition */
.rank-math-block .rank-math-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.25s ease;
    margin: 0;
    font-size: 14px;
    color: var(--contrast-2, #575760);
    line-height: 1.7;
}

.rank-math-block .rank-math-answer p {
    margin: 0;
    padding: 0 0 14px;
}

@media (max-width: 640px) {
    .rank-math-block .rank-math-question {
        font-size: 14px;
        padding: 12px 0;
    }
}


/* ── Custom Footer ── */
#qbf-footer { background:#000; color:#999; font-size:13px; border-top:2px solid #222; }
.qbf-inner { max-width:1200px; margin:0 auto; padding:36px 32px; display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; }
.qbf-logo { display:inline-flex; align-items:center; gap:8px; text-decoration:none; margin-bottom:12px; }
.qbf-logo-icon { font-size:20px; }
.qbf-logo-text { font-size:17px; font-weight:700; color:#fff; }
.qbf-about-text { font-size:13px; color:#666; margin:0 0 14px; line-height:1.6; }
.qbf-social { display:flex; gap:8px; }
.qbf-social-link { color:#555; text-decoration:none; }
.qbf-social-link:hover { color:#fff; }
.qbf-heading { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:#fff; margin:0 0 12px; }
.qbf-links { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.qbf-links li { margin:0; padding:0; }
.qbf-links a { color:#666; text-decoration:none; font-size:13px; }
.qbf-links a:hover { color:#ccc; }
.qbf-bottom { border-top:1px solid #1a1a1a; }
.qbf-bottom-inner { max-width:1200px; margin:0 auto; padding:14px 32px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.qbf-copyright,.qbf-disclaimer-note { font-size:12px; color:#444; margin:0; }
.qbf-copyright a { color:#666; text-decoration:none; }
.site-footer .copyright-bar { display:none !important; }
@media(max-width:700px){
    .qbf-inner { grid-template-columns:1fr 1fr; gap:28px; padding:28px 20px; }
    .qbf-col:first-child { grid-column:1/-1; }
    .qbf-bottom-inner { flex-direction:column; padding:12px 20px; }
}
@media(max-width:480px){ .qbf-inner { grid-template-columns:1fr; } }

