/*
Theme Name: QR Chameleon Blog
Theme URI: https://qrchameleon.com/blog
Author: QR Chameleon
Author URI: https://qrchameleon.com
Description: Custom WordPress theme matching the QR Chameleon marketing site — Inter + Caprasimo fonts, mint/navy brand palette, GSAP nav animations.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: qrc-blog
*/

/* ============================================================
   BASE RESETS & WORDPRESS CONTENT NORMALIZATION
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: clip; /* 'clip' prevents horizontal scroll without breaking position:sticky */
    max-width: 100%;
}

/* Remove WP default margins from main content images */
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

/* Make WordPress image blocks full width - override inline styles */
.entry-content .wp-block-image,
.entry-content .wp-block-image.alignleft,
.entry-content .wp-block-image.alignright,
.entry-content .wp-block-image.aligncenter,
.entry-content figure.wp-block-image {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.entry-content .wp-block-image img {
    width: 100% !important;
    max-width: 100% !important;
}

/* Override WP "Rounded" image style (default is 9999px / pill) */
.entry-content .wp-block-image.is-style-rounded img {
    border-radius: 24px !important;
}

/* Remove default list styles inside WP content */
.entry-content ul,
.entry-content ol {
    padding-left: 2rem;
    margin-bottom: 1.25rem;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ul > li::marker {
    color: #3eeda2;
    font-size: 1.5rem;
}

.entry-content ol {
    list-style: none;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.35rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #111827;
}

.entry-content ol > li {
    position: relative;
    padding-left: 2.75rem;
}

.entry-content ol > li::before {
    content: counter(list-item) ".";
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #123351;
    line-height: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 27L1 5L26 1L29 24L3 27Z' fill='%233eeda2'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* ============================================================
   TYPOGRAPHY — BLOG POST CONTENT
   ============================================================ */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    line-height: 1.2;
}

.entry-content h1 { font-size: 48px; }
.entry-content h2 {
    font-size: 40px;
    margin-top: 27px;
    margin-bottom: 25px;
}
.entry-content h3 { font-size: 32px; }
.entry-content h4 { font-size: 24px; }

.entry-content p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #111827;
    margin-bottom: 1.375rem;
}

.entry-content a {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: #3eeda2;
    text-decoration-color: #3eeda2;
}

/* ============================================================
   BLOCKQUOTES
   ============================================================ */

.wp-block-quote {
    position: relative;
    margin: 2rem 0;
    padding: 0;
    border: none;
    background: none;
}

.wp-block-quote p {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 1.125rem !important;
    font-style: italic !important;
    color: #111827 !important;
    margin: 0 !important;
    text-align: left !important;
}

.wp-block-quote p::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 24px;
    background-image: url('quote-mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
    filter: invert(73%) sepia(53%) saturate(402%) hue-rotate(97deg) brightness(98%) contrast(92%);
}

.wp-block-quote p::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 24px;
    background-image: url('quote-mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 8px;
    transform: rotate(180deg);
    filter: invert(73%) sepia(53%) saturate(402%) hue-rotate(97deg) brightness(98%) contrast(92%);
}

.wp-block-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    color: #7C8A83;
    font-style: normal;
}

/* ============================================================
   PULLQUOTE
   ============================================================ */

.wp-block-pullquote {
    position: relative;
    margin: 3rem auto !important;
    padding: 0 !important;
    border: none !important;
    border-left: none !important;
    background: none !important;
    background-color: transparent !important;
    max-width: 100%;
}

.wp-block-pullquote p {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #111827 !important;
    font-style: normal !important;
    margin: 0 !important;
    text-align: left !important;
}

.wp-block-pullquote p::before {
    content: '';
    display: inline-block;
    width: 48px;
    height: 36px;
    background-image: url('quote-mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 12px;
    filter: invert(73%) sepia(53%) saturate(402%) hue-rotate(97deg) brightness(98%) contrast(92%);
}

.wp-block-pullquote p::after {
    content: '';
    display: inline-block;
    width: 48px;
    height: 36px;
    background-image: url('quote-mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 12px;
    transform: rotate(180deg);
    filter: invert(73%) sepia(53%) saturate(402%) hue-rotate(97deg) brightness(98%) contrast(92%);
}

.wp-block-pullquote cite {
    display: block !important;
    margin-top: 1rem !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #7C8A83 !important;
    font-style: normal !important;
}

/* ============================================================
   CODE BLOCKS
   ============================================================ */

.entry-content code,
.wp-block-code code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    background-color: #f1f5f9;
    color: #0f2a47;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.entry-content pre,
.wp-block-code {
    background-color: #0f2a47;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============================================================
   IMAGES & MEDIA
   ============================================================ */

.wp-block-image img,
.entry-content img {
    border-radius: 8px;
}

.wp-block-image figcaption,
.entry-content figcaption {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
}

/* ============================================================
   TABLES
   ============================================================ */

.entry-content .wp-block-table,
.wp-block-table {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

.entry-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
}

.entry-content th,
.wp-block-table th,
.wp-block-table.has-fixed-layout th,
figure.wp-block-table th {
    background-color: #123351;
    color: #ffffff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.entry-content th:first-child,
.wp-block-table th:first-child {
    border-left: none !important;
}

.entry-content thead,
.wp-block-table thead {
    border-bottom: 2px solid #27659E !important;
}

.entry-content td,
.wp-block-table td,
.wp-block-table.has-fixed-layout td,
figure.wp-block-table td {
    padding: 0.75rem 1rem;
    border-top: none !important;
    border-left: 1px solid #e5e7eb !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #374151;
}

.entry-content td:first-child,
.wp-block-table td:first-child {
    border-left: none !important;
}

.entry-content tr:nth-child(even) td,
.wp-block-table tr:nth-child(even) td {
    background-color: #EDF4F2;
}

/* ============================================================
   HORIZONTAL RULE
   ============================================================ */

.entry-content hr,
.wp-block-separator {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2.5rem 0;
}

/* ============================================================
   WORDPRESS BUTTONS
   ============================================================ */

.wp-block-button .wp-block-button__link {
    background-color: #123351;
    color: #ffffff;
    padding: 8px 24px;
    text-transform: none;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    border: none;
    font-size: 16px;
}

.wp-block-button .wp-block-button__link:hover {
    background-color: #214a73;
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid #123351;
    color: #123351;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #214a73;
    border-color: #214a73;
    color: #ffffff;
}

/* Green CTA button — matches pre-footer CTA */
.wp-block-button.qr-btn-green .wp-block-button__link,
.wp-block-button.qr-btn-green a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    padding: 0 16px !important;
    background: #3eeda2 !important;
    color: #000000 !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    white-space: nowrap !important;
    line-height: normal !important;
}

.wp-block-button.qr-btn-green .wp-block-button__link:hover,
.wp-block-button.qr-btn-green a:hover {
    background: #35d68f !important;
    color: #000000 !important;
}

/* Blue CTA button */
.wp-block-button.qr-btn-blue .wp-block-button__link,
.wp-block-button.qr-btn-blue a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    padding: 0 16px !important;
    background: #123351 !important;
    color: #ffffff !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: normal !important;
}

.wp-block-button.qr-btn-blue .wp-block-button__link:hover,
.wp-block-button.qr-btn-blue a:hover {
    background: #123351 !important;
    color: #3eeda2 !important;
}

/* Outline button */
.wp-block-button.qr-btn-outline .wp-block-button__link,
.wp-block-button.qr-btn-outline a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    padding: 0 16px !important;
    background: transparent !important;
    color: #123351 !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    border: 2px solid #123351 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: normal !important;
}

.wp-block-button.qr-btn-outline .wp-block-button__link:hover,
.wp-block-button.qr-btn-outline a:hover {
    background: #123351 !important;
    color: #ffffff !important;
    border-color: #123351 !important;
}

/* ============================================================
   CTA BLOCKS (in-post call-to-action banners)
   ============================================================ */

/* Mint CTA — light green background */
.qrc-cta-mint {
    background: #e8fdf4 !important;
    border-radius: 24px !important;
    padding: 32px 32px !important;
    text-align: center !important;
    margin: 2.5rem 0 !important;
}

.qrc-cta-mint p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 1.5rem;
}

.qrc-cta-mint .wp-block-heading {
    font-family: 'Work Sans', system-ui, sans-serif !important;
    font-weight: 700 !important;
    color: #123351 !important;
    margin-bottom: 0.75rem !important;
}

/* Navy CTA — dark blue background */
.qrc-cta-navy {
    background: #123351 !important;
    border-radius: 24px !important;
    padding: 32px 32px !important;
    text-align: center !important;
    margin: 2.5rem 0 !important;
}

.qrc-cta-navy .wp-block-heading {
    font-family: 'Work Sans', system-ui, sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 0.75rem !important;
}

.qrc-cta-navy p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

/* Navy CTA with Chameleon — raw HTML layout */
.qrc-cta-chameleon {
    position: relative;
    display: flex;
    background: #123351;
    border-radius: 24px;
    overflow: hidden;
    margin: 2.5rem 0;
}

.qrc-cta-chameleon__img {
    position: absolute;
    left: 0;
    top: 10%;
    width: 30%;
    display: flex;
    justify-content: center;
}

.qrc-cta-chameleon__img img {
    display: block !important;
    width: 250px !important;
    max-width: 250px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    border-radius: 0 !important;
}

.qrc-cta-chameleon__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 32px 24px 24px;
    margin-left: 30%;
}

.qrc-cta-chameleon__content h3 {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.qrc-cta-chameleon__content p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.125rem;
    color: #d1d5db;
    margin: 0 0 1.25rem 0;
}

.qrc-cta-chameleon__btn,
.entry-content .qrc-cta-chameleon__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    padding: 0 16px !important;
    background: #3eeda2 !important;
    color: #000000 !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease !important;
    align-self: flex-start !important;
}

.qrc-cta-chameleon__btn:hover,
.entry-content .qrc-cta-chameleon__btn:hover {
    background: #35d68f !important;
    color: #000000 !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .qrc-cta-chameleon__img {
        display: none;
    }

    .qrc-cta-chameleon__content {
        padding: 24px;
        margin-left: 0;
    }
}

/* Mint CTA Block — centered, no image */
.qrc-cta-mint-block {
    background: #3eeda2;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    margin: 2.5rem 0;
}

.qrc-cta-mint-block h3 {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #123351;
    margin: 0 0 0.5rem 0;
}

.qrc-cta-mint-block p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.125rem;
    color: #123351;
    margin: 0 0 1.25rem 0;
}

.qrc-cta-mint-block__btn,
.entry-content .qrc-cta-mint-block__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    padding: 0 16px !important;
    background: #123351 !important;
    color: #ffffff !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease !important;
    cursor: pointer;
}

.qrc-cta-mint-block__btn:hover,
.entry-content .qrc-cta-mint-block__btn:hover {
    background: #0f2b47 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ============================================================
   WORDPRESS GALLERIES
   ============================================================ */

.wp-block-gallery {
    margin: 2rem 0;
}

.wp-block-gallery .blocks-gallery-grid,
.wp-block-gallery .wp-block-gallery__container {
    gap: 16px;
}

.wp-block-gallery .blocks-gallery-item figure,
.wp-block-gallery .wp-block-image figure {
    margin: 0;
}

.wp-block-gallery img {
    border-radius: 8px;
}

/* ============================================================
   WORDPRESS COLUMNS
   ============================================================ */

.wp-block-columns {
    margin: 2rem 0;
    gap: 24px;
}

.wp-block-column {
    flex-basis: 0;
    flex-grow: 1;
}

/* ============================================================
   WORDPRESS EMBEDS (YouTube, Twitter, etc.)
   ============================================================ */

.wp-block-embed {
    margin: 2rem 0;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper embed,
.wp-block-embed__wrapper object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Twitter embeds don't need aspect ratio container */
.wp-block-embed.is-type-rich .wp-block-embed__wrapper {
    padding-bottom: 0;
    height: auto;
}

/* ============================================================
   WORDPRESS SPACER
   ============================================================ */

.wp-block-spacer {
    clear: both;
}

/* ============================================================
   WORDPRESS COVER BLOCK
   ============================================================ */

.wp-block-cover {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
}

.wp-block-cover__inner-container {
    padding: 28px;
}

.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover p {
    color: #ffffff;
}

/* ============================================================
   WORDPRESS GROUP BLOCK
   ============================================================ */

.wp-block-group {
    margin: 2rem 0;
}

.wp-block-group.has-background {
    padding: 28px;
    border-radius: 8px;
}

/* ============================================================
   WORDPRESS ALIGNMENTS
   ============================================================ */

.alignleft {
    float: left;
    margin: 0.25rem 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.25rem 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alignwide {
    margin-left: -2rem;
    margin-right: -2rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.qrc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.qrc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 38px;
    padding: 3px 10px;
    border-radius: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    background-color: transparent;
    border: 2px solid transparent;
    transition: all 0.15s ease;
}

.qrc-pagination .page-numbers:hover {
    background-color: #EDF4F2;
}

.qrc-pagination .page-numbers.current {
    background-color: transparent;
    color: #123351;
    border: 2px solid #123351;
}

.qrc-pagination .page-numbers.dots {
    border: none;
    background: none;
    color: #6b7280;
}

/* ============================================================
   POST NAV (PREV/NEXT)
   ============================================================ */

.qrc-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.qrc-post-nav a {
    display: block;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.qrc-post-nav a:hover {
    border-color: #123351;
    box-shadow: 0 2px 8px rgba(18, 51, 81, 0.1);
}

.qrc-post-nav .nav-subtitle {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.qrc-post-nav .nav-title {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.qrc-post-nav .nav-next {
    text-align: right;
}

/* ============================================================
   POST CARD LINE-CLAMP (for browsers that need fallback)
   ============================================================ */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   WORDPRESS ADMIN BAR OFFSET
   ============================================================ */

/* Sub-nav sticks below admin bar when logged into WP */
.admin-bar .blog-subnav-wrap {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .blog-subnav-wrap {
        top: 46px;
    }
}

/* ============================================================
   SEARCH FORM
   ============================================================ */

.qrc-search-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}

.qrc-search-form input[type="search"] {
    flex: 1;
    height: 48px;
    padding: 0 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    color: #0f2a47;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: border-color 0.15s ease;
}

.qrc-search-form input[type="search"]:focus {
    border-color: #123351;
}

.qrc-search-form button[type="submit"] {
    height: 48px;
    padding: 0 1.25rem;
    background-color: #123351;
    color: #ffffff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.qrc-search-form button[type="submit"]:hover {
    background-color: #214a73;
}

/* ============================================================
   AUTHOR BIO
   ============================================================ */

.author-bio {
    margin-top: 8rem;
    padding: 2rem;
    background-color: #EDF4F2;
    border-radius: 24px;
}

.author-bio-inner {
    display: block;
}

.author-bio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.author-bio-avatar {
    display: inline-flex;
    margin-right: 1.5rem;
    vertical-align: middle;
}

.author-bio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-name {
    display: inline-flex;
    align-items: center;
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    vertical-align: middle;
}

.author-bio-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.author-bio-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #123351;
    transition: color 0.2s ease;
    text-decoration: none;
}

.author-bio-social-link:hover {
    color: #3eeda2;
}

.author-bio-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.06em;
    color: #747474;
    margin: 0;
    margin-top: 24px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .author-bio-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .author-bio-name {
        display: block;
    }
}

/* ============================================================
   COMMENTS
   ============================================================ */

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

.comment-body {
    padding: 1.25rem;
    background: #EDF4F2;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-author .fn {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    color: #111827;
}

.comment-meta {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.125rem;
    margin-bottom: 0.75rem;
}

.comment-content p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
}

/* Comment reply title */
.comment-reply-title,
#reply-title {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Comment form fields */
.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    color: #0F2A47;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.comment-form-comment textarea {
    height: 120px;
    padding: 12px 16px;
    resize: vertical;
    min-height: 120px;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #123351;
}

/* Submit button */
.comment-form input[type="submit"],
.submit {
    background-color: #123351;
    color: #ffffff;
    padding: 8px 24px;
    height: 40px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.comment-form input[type="submit"]:hover,
.submit:hover {
    background-color: #214a73;
}

/* Reply and edit links */
.comment-reply-link,
.comment-edit-link {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.comment-reply-link:hover,
.comment-edit-link:hover {
    color: #3eeda2;
    text-decoration-color: #3eeda2;
}


/* ============================================================
   BLOG SUB-NAVIGATION (sticky, sits below main QRC header)
   ============================================================ */

.blog-subnav-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: #EDF7F4;
    border-top: 0.5px solid #C5C5C5;
    border-bottom: 0.5px solid #C5C5C5;
    transition: box-shadow 0.2s ease;
}

/* Add a shadow when the page has scrolled past the hero */
.blog-subnav-wrap.is-pinned {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.blog-subnav-inner {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 0;
}

@media (min-width: 1024px) {
    .blog-subnav-inner {
        padding: 0 4rem;
    }
}

/* QR Chameleon logo mark (appears when sticky) */
.blog-subnav-logo {
    position: absolute;
    left: 1.5rem;  /* Match the container's left padding */
    height: 32px;
    width: auto;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .blog-subnav-logo {
        left: 4rem;  /* Match the container's left padding on large screens */
    }
}

/* "Blog" label */
.blog-subnav-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #123351;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Vertical divider (removed from HTML, hidden via CSS as fallback) */
.blog-subnav-divider {
    display: none;
}

/* Scrollable tabs container */
.blog-subnav-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    flex: 1;
}

.blog-subnav-tabs::-webkit-scrollbar {
    display: none;
}

/* Individual tab */
.blog-subnav-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 50px;
    padding: 0 0.875rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

/* Chevron icon for dropdown tabs */
.blog-subnav-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.blog-subnav-tab-wrapper:hover .blog-subnav-chevron {
    transform: rotate(180deg);
}

.blog-subnav-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: transparent;
    transition: background-color 0.15s ease;
}

.blog-subnav-tab:hover::after {
    background-color: #123351;
}

.blog-subnav-tab:hover {
    color: #123351;
}

.blog-subnav-tab.active::after {
    background-color: #123351;
}

.blog-subnav-tab.active {
    color: #123351;
    font-weight: 600;
}

/* Search button */
.blog-subnav-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #111827;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.blog-subnav-search-btn:hover {
    background-color: #123351;
    color: #ffffff;
}

/* Full-width search dropdown (overlay) */
.blog-subnav-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #f6fcf9; /* mint-light - matches main header */
    border-bottom: 0.5px solid #C5C5C5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transform: translateY(-10px);
}

.blog-subnav-search-dropdown-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

@media (min-width: 1024px) {
    .blog-subnav-search-dropdown-inner {
        padding: 2.5rem 4rem;
    }
}

.blog-subnav-search-form-large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-subnav-search-wrapper {
    position: relative;
    width: 100%;
}

.blog-subnav-search-input-large {
    width: 100%;
    height: 60px;
    padding: 0 60px 0 1.5rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.125rem;
    color: #0f2a47;
    background: #ffffff;
    border: 2px solid #123351;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blog-subnav-search-input-large:focus {
    border-color: #123351;
    box-shadow: 0 0 0 3px rgba(18, 51, 81, 0.1);
}

.blog-subnav-search-input-large::placeholder {
    color: #9ca3af;
}

.blog-subnav-search-submit-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #123351;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.blog-subnav-search-submit-icon:hover {
    background-color: #123351;
    color: #ffffff;
}

/* Old dropdown styles (deprecated - can be removed later) */
.blog-subnav-search-bar {
    border-top: 0.5px solid #C5C5C5;
    padding: 0.625rem 1.5rem;
    background-color: #EDF7F4;
}

@media (min-width: 1024px) {
    .blog-subnav-search-bar {
        padding: 0.625rem 4rem;
    }
}

.blog-subnav-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 520px;
}

.blog-subnav-search-input {
    flex: 1;
    height: 36px;
    padding: 0 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #0f2a47;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s ease;
}

.blog-subnav-search-input:focus {
    border-color: #123351;
}

.blog-subnav-search-submit {
    height: 36px;
    padding: 0 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #123351;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.blog-subnav-search-submit:hover {
    background-color: #214a73;
}

.blog-subnav-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.blog-subnav-search-close:hover {
    color: #374151;
    background-color: #e5e7eb;
}

/* ============================================================
   BLOG SUB-NAV HAMBURGER & MOBILE MENU (< 900px)
   ============================================================ */

/* Hamburger button — hidden at 900px+ */
.blog-subnav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    flex-shrink: 0;
}

.blog-subnav-hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #123351;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X when active */
.blog-subnav-hamburger.is-active .blog-subnav-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.blog-subnav-hamburger.is-active .blog-subnav-hamburger-line:nth-child(2) {
    opacity: 0;
}
.blog-subnav-hamburger.is-active .blog-subnav-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.blog-subnav-mobile-menu {
    background-color: #EDF7F4;
    border-top: 0.5px solid #C5C5C5;
    padding: 0.75rem 1.5rem 1rem;
}

.blog-subnav-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-subnav-mobile-list li {
    margin: 0;
}

.blog-subnav-mobile-list li a {
    display: block;
    padding: 0.625rem 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: color 0.15s ease;
}

.blog-subnav-mobile-list li a:hover {
    color: #123351;
}

.blog-subnav-mobile-list li.current-menu-item > a,
.blog-subnav-mobile-list li.current-menu-ancestor > a {
    color: #123351;
    font-weight: 600;
}

/* Indent sub-menu items */
.blog-subnav-mobile-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-subnav-mobile-list .sub-menu li a {
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #555;
}

/* Below 900px: show hamburger, hide inline tabs */
@media (max-width: 899px) {
    .blog-subnav-tabs {
        display: none !important;
    }
    .blog-subnav-hamburger {
        display: flex;
    }
}


/* ============================================================
   BLOG SUB-NAV DROPDOWNS
   ============================================================ */

/* Wrapper for tabs with dropdowns */
.blog-subnav-tab-wrapper {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

/* Dropdown container (full-width, hidden by default) */
.blog-subnav-dropdown {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #f6fcf9;
    border-top: 0.5px solid #C5C5C5;
    border-bottom: 0.5px solid #C5C5C5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

/* Show dropdown on parent hover */
.blog-subnav-tab-wrapper:hover .blog-subnav-dropdown,
.blog-subnav-dropdown:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Dropdown header (RESOURCES, INDUSTRY, etc.) */
.blog-subnav-dropdown-header {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0;
    color: #7C8A83;
    margin-bottom: 1rem;
    position: relative;
}

.blog-subnav-dropdown-header::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background-color: #C5C5C5;
}

@media (min-width: 1024px) {
    .blog-subnav-dropdown-header {
        padding: 0 4rem;
    }

    .blog-subnav-dropdown-header::after {
        left: 4rem;
        right: 4rem;
    }
}

/* Dropdown inner container (max-width constrained) */
.blog-subnav-dropdown-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .blog-subnav-dropdown-inner {
        padding: 0 4rem;
    }
}

/* Dropdown items */
.blog-subnav-dropdown-item {
    display: block;
    padding: 0.5rem 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #7C8A83;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.blog-subnav-dropdown-item:hover {
    background-color: #EDF4F2;
}


/* ============================================================
   BLOG HERO SECTION (featured post + recent posts)
   ============================================================ */

.blog-hero-section {
    background-color: #123351;
    overflow: hidden;
    position: relative;
}

/* Right half — pseudo-element so it goes full bleed */
.blog-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: #EDF7F4;
    z-index: 0;
}

/* Hide split on mobile (stacked layout) */
@media (max-width: 767px) {
    .blog-hero-section::after {
        display: none;
    }
}

.blog-hero-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
    z-index: 1; /* above the ::after pseudo-element */
}


@media (min-width: 768px) {
    .blog-hero-inner {
        grid-template-columns: 1fr 1fr;
        padding: 0;
        align-items: stretch;
    }
}

@media (min-width: 1024px) {
    .blog-hero-inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* Each column handles its own padding so backgrounds fill correctly */
.blog-hero-featured {
    padding: 2.5rem 2rem 2.5rem 1.5rem;
}

@media (min-width: 1024px) {
    .blog-hero-featured {
        padding: 4.5rem 4rem 4.5rem 4rem;
    }
}

.blog-hero-recent {
    padding: 2.5rem 1.5rem 2.5rem 1.5rem;
}

@media (min-width: 1024px) {
    .blog-hero-recent {
        padding: 4.5rem 4rem 4.5rem 4rem;
    }
}

/* Featured post — left column */
.blog-hero-featured {
    display: flex;
    flex-direction: column;
    background-color: #123351;
}

.blog-hero-img-link {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    margin: 0 0 1.25rem;
    aspect-ratio: 504 / 307;
    width: 100%;
}

.blog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-img-placeholder {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px dashed rgba(0,0,0,0.2);
    border-radius: 24px;
}

.blog-hero-featured-body {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* "QR Chameleon Blog" label above featured post */
.blog-hero-label {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 3rem; /* 48px — matches Bitly Blog heading */
    font-weight: 700;
    color: #3eeda2;
    margin: 0 0 1.75rem; /* 28px bottom margin */
    padding: 0;
    line-height: 1.2;
}

.blog-hero-title {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.1;
    color: #3eeda2;
    margin: 0;
}

@media (min-width: 768px) {
    .blog-hero-title {
        font-size: 1.875rem;
    }
}

.blog-hero-title a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s ease;
}

.blog-hero-title a:hover {
    text-decoration: underline;
    text-decoration-color: #3eeda2;
}

.blog-hero-excerpt {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #f6fcf9;
    margin: 0.25rem 0 0;
}

.blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.blog-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.blog-meta-author {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.blog-meta-sep {
    color: #d1d5db;
    font-size: 0.875rem;
}

.blog-meta-date,
.blog-meta-read {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Hero featured post — uppercase category label with organic SVG background */
.blog-hero-cat-label {
    position: relative;
    display: inline-block;
    align-self: flex-start;
    padding: 0.2rem 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #123351;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.blog-hero-cat-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: scaleX(-1) rotate(-1deg);
}

/* Category chip */
.blog-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.1875rem 0.625rem;
    border-radius: 9999px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.blog-chip:hover {
    opacity: 0.8;
}

.blog-chip-sm {
    font-size: 1rem; /* 16px */
    padding: 0.125rem 0.5rem;
}

/* Recent posts — right column */
.blog-hero-recent {
    display: flex;
    flex-direction: column;
    background-color: #EDF7F4;
}

.blog-hero-recent-heading {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 1.75rem; /* 28px */
    font-weight: 600;
    color: #111827;
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-recent-item {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    padding-top: 1.5rem;
    align-items: flex-start;
}

.blog-recent-item:first-child {
    padding-top: 0;
}

.blog-recent-thumb-link {
    flex-shrink: 0;
    display: block;
    width: 285px;
    aspect-ratio: 1200 / 700;
    border-radius: 24px;
    overflow: hidden;
}

.blog-recent-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
}

.blog-recent-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px dashed rgba(0,0,0,0.15);
    border-radius: 24px;
}

.blog-recent-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding-top: 0.25rem;
}

/* Recent posts — uppercase category label with green SVG background */
.blog-recent-cat {
    position: relative;
    display: inline-block;
    align-self: flex-start;
    padding: 0.2rem 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.blog-recent-cat-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: scaleX(-1) rotate(-1deg);
}

.blog-recent-title {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    line-height: 1.25;
    color: #123351;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Override for grid cards (posts 5+) - larger title */
.blog-grid .blog-recent-title {
    font-size: 2rem; /* 32px */
    line-height: 2.375rem; /* 38px */
    -webkit-line-clamp: 3; /* Allow 3 lines for grid cards */
}

.blog-recent-title a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: text-decoration 0.15s ease;
}

.blog-recent-title a:hover {
    text-decoration: underline;
}

.blog-read-more {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    color: #123351;
    text-decoration: none;
    margin-top: 0.75rem;
    text-underline-offset: 3px;
}

.blog-read-more:hover {
    text-decoration: underline;
}


/* ============================================================
   SINGLE POST HERO — 50/50 SPLIT HEADER
   ============================================================ */

.single-post-hero {
    background-color: #123351;
}

.single-post-hero-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .single-post-hero-inner {
        padding: 0 125px;
    }
}

/* Back to Blog link */
.single-post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.15s ease;
}

.single-post-back-link:hover {
    color: #ffffff;
}

/* 50/50 Split Container */
.single-post-hero-split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .single-post-hero-split {
        flex-direction: row;
        gap: 0;
    }
}

/* Left Column: Title + Meta */
.single-post-hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 0 0;
}

@media (min-width: 1024px) {
    .single-post-hero-left {
        padding: 56px 2rem 56px 0;
    }
}

/* Category Label with SVG Background */
.single-post-cat-label {
    position: relative;
    display: inline-block;
    align-self: flex-start;
    padding: 0.2rem 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #123351;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    margin-bottom: 1.5rem;
    pointer-events: none;
}

.single-post-cat-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: scaleX(-1) rotate(-1deg);
}

/* Post Title */
.single-post-title {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #3eeda2;
    line-height: 1.1;
    margin: 0 0 10px;
}

@media (min-width: 640px) {
    .single-post-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .single-post-title {
        font-size: 3rem;
    }
}

/* Post Date */
.single-post-date {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 200;
    color: #f6fcf9;
    margin-top: 2rem;
}

.single-post-date-dot {
    font-size: 2rem;
    line-height: 0;
    vertical-align: middle;
}

/* Right Column: Featured Image */
.single-post-hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

@media (min-width: 1024px) {
    .single-post-hero-right {
        padding: 56px 0 56px 2rem;
    }
}

.single-post-hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 700;
    object-fit: cover;
    border-radius: 24px;
}

.single-post-hero-img-placeholder {
    width: 100%;
    aspect-ratio: 1200 / 700;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 24px;
}


/* ============================================================
   TABLE OF CONTENTS (SIDEBAR)
   ============================================================ */

/* Ensure sidebar sticks */
aside.sticky {
    position: sticky !important;
    top: 70px !important;
    align-self: flex-start;
}

.qrc-toc {
    background: none;
    border-radius: 0;
    padding: 0.5rem 0;
}

.qrc-toc-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #161616;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.qrc-toc-nav {
    margin: 0;
    padding: 0;
}

.qrc-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid #e0e0e0;
}

.qrc-toc-item {
    margin-left: -2px;
    border-left: 2px solid transparent;
    padding: 0.5rem 0 0.5rem 1.75rem;
    transition: border-color 0.2s ease;
}

.qrc-toc-item:hover {
    border-left-color: #161616;
}

.qrc-toc-item.active {
    border-left-color: #161616;
}

.qrc-toc-item a {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #999;
    text-decoration: none;
    line-height: 1.5;
    letter-spacing: -0.02em;
    transition: color 0.15s ease, font-weight 0.15s ease;
    display: block;
}

.qrc-toc-item:hover a {
    color: #161616;
}

.qrc-toc-item.active a {
    color: #161616;
    font-weight: 600;
}

/* Indented sub-items (h3 headings) */
.qrc-toc-item-sub {
    padding-left: 2.5rem;
}

.qrc-toc-item-sub a {
    font-size: 0.9375rem;
}


/* ============================================================
   MORE ARTICLES SECTION
   ============================================================ */

.blog-articles-section {
    background-color: #f6fcf9; /* mint-light */
}

.blog-articles-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

@media (min-width: 1024px) {
    .blog-articles-inner {
        padding: 3.5rem 4rem;
    }
}

.blog-articles-heading {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 3rem; /* 48px */
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.75rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    grid-auto-rows: 1fr; /* Makes all cards in a row equal height */
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ensure cards stretch to fill grid cell */
.blog-grid > article {
    height: 100%;
}

/* Hover effect - change background color */
.blog-grid > article:hover {
    background-color: #E6EEEC !important;
}


/* ============================================================
   SCROLL-TRIGGERED SUB-NAV SHADOW
   ============================================================ */
/* Applied via JS when page has scrolled */
.blog-subnav-wrap.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
}


/* ============================================================
   FAQ ACCORDION SECTION
   ============================================================ */

.faq-section {
    margin: 3rem 0 2rem;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

@media (min-width: 640px) {
    .faq-question {
        padding: 1.25rem 0;
    }
}

.faq-question span {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    padding-right: 0.75rem;
}

@media (min-width: 640px) {
    .faq-question span {
        font-size: 17px;
        padding-right: 1rem;
    }
}

@media (min-width: 1024px) {
    .faq-question span {
        font-size: 18px;
    }
}

.faq-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

@media (min-width: 640px) {
    .faq-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.faq-answer {
    overflow: hidden;
    height: 0;
    opacity: 0;
}

.faq-item.active .faq-answer {
    height: auto;
    opacity: 1;
}

.faq-answer p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #4f6267;
    line-height: 22px;
    padding-bottom: 1rem;
    margin: 0;
}

@media (min-width: 640px) {
    .faq-answer p {
        font-size: 15px;
        line-height: 24px;
        padding-bottom: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .faq-answer p {
        font-size: 16px;
        line-height: 25px;
    }
}


/* ============================================================
   TABLET / MOBILE OVERRIDES (< 1024px)
   Full-width article + collapsible TOC
   ============================================================ */

@media (max-width: 1023px) {
    /* Let article fill full width when sidebar is hidden */
    .single-post-article {
        max-width: 100% !important;
        flex: 1 1 auto !important;
        margin-right: 0 !important;
    }
}

/* ============================================================
   COLLAPSIBLE MOBILE TOC (< 1024px)
   ============================================================ */

.qrc-toc-mobile {
    width: 100%;
    margin-bottom: 1.5rem;
}

.qrc-toc-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background-color: #f5f5f5;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.qrc-toc-mobile-toggle:hover {
    background-color: #ebebeb;
}

.qrc-toc-mobile-toggle-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #161616;
    letter-spacing: 0.04em;
}

.qrc-toc-mobile-chevron {
    transition: transform 0.3s ease;
    color: #161616;
}

.qrc-toc-mobile-toggle[aria-expanded="true"] .qrc-toc-mobile-chevron {
    transform: rotate(180deg);
}

.qrc-toc-mobile-content {
    overflow: hidden;
}

.qrc-toc-mobile-content .qrc-toc {
    border-radius: 0;
    padding: 0.75rem 1.25rem 1.25rem;
}

.qrc-toc-mobile-content .qrc-toc-title {
    display: none; /* Already shown in the toggle button */
}
