/**
 * Single post (single.php) — hero header.
 *
 * Reuses the shared `.hero-banner__*` base (src/base.css / main-with-blocks.css,
 * same markup as the One Simple Page Header widget) and only overrides what the
 * blog layout needs: fixed 500px desktop height, vertically centred content,
 * category badge, tighter heading, capped excerpt width.
 *
 * Loaded only on single post views (see one_montessori_enqueue_single_post_assets).
 * Sizes in px (theme root is 62.5%, so rem would be 10px-based).
 */

.blog-single__hero.hero-banner__wrapper {
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 48px 0;
    background-color: #2b2824;
    color: #fff;
}

/* Align the hero text with the body `.container` (1440px, 90px gutters). */
.blog-single__hero .hero-banner__content-wrapper.container {
    width: 100%;
    max-width: 1440px;
    padding: 0 90px;
}

@media (width <= 1024.98px) {
    .blog-single__hero.hero-banner__wrapper {
        min-height: 400px;
    }
    .blog-single__hero .hero-banner__content-wrapper.container {
        padding: 0 20px;
    }
}

@media (width <= 640.98px) {
    .blog-single__hero.hero-banner__wrapper {
        min-height: 360px;
    }
}

/* Featured image as full-bleed background (base gives position/object-fit/z-index). */
.blog-single__hero .hero-banner__background-image {
    margin: 0;
    max-width: none;
}

/* Uniform dim, slightly heavier on the text side. */
.blog-single__hero-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* No featured image: brand red block. */
.blog-single__hero-background-color {
    background-color: #d52838;
}

.blog-single__hero .hero-banner-content__inner-wrapper {
    max-width: 780px;
}

/* Category badge(s) */
.blog-single__hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.blog-single__hero-category {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 4px;
    background-color: #d52838;
    color: #fff !important;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s;
}

a.blog-single__hero-category:hover,
a.blog-single__hero-category:focus-visible {
    background-color: #b41f2d;
    color: #fff;
}

/* On the red no-image fallback, invert the badge so it stays visible. */
.hero-banner__has-color-background .blog-single__hero-category {
    background-color: #fff;
    color: #d52838 !important;
}

.hero-banner__has-color-background a.blog-single__hero-category:hover,
.hero-banner__has-color-background a.blog-single__hero-category:focus-visible {
    background-color: #f7e3e5;
}

/* Title: inherits Libre Baskerville 64px from the hero base; tighten line height. */
.blog-single__hero .blog-single__hero-title {
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

@media (width <= 1024.98px) {
    .blog-single__hero .blog-single__hero-title {
        font-size: 40px;
    }
}

@media (width <= 640.98px) {
    .blog-single__hero .blog-single__hero-title {
        font-size: 32px;
    }
}

/* Excerpt */
.blog-single__hero .blog-single__hero-excerpt {
    max-width: 660px;
    margin: 24px 0 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.7;
}

@media (width <= 640.98px) {
    .blog-single__hero .blog-single__hero-excerpt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
        margin-top: 16px;
        font-size: 16px;
    }
}

/* =========================================================================
   Body: reading column + sticky TOC column
   ========================================================================= */

.blog-single__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 64px;
    padding-bottom: 80px;
}

.blog-single__body--has-toc {
    grid-template-columns: minmax(0, 800px) 300px;
    justify-content: space-between;
    column-gap: 64px;
}

.blog-single__main {
    min-width: 0;
}

.blog-single__body:not(.blog-single__body--has-toc) .blog-single__main {
    max-width: 800px;
}

/* Meta row (breadcrumb + author/date): first grid row, spans both columns */
.blog-single__body > .blog-single__header {
    grid-column: 1 / -1;
    margin-bottom: 40px;
}

.blog-single__header .breadcrumb-items {
    margin: 0 0 12px;
}

.blog-single__header .blog-single__meta {
    margin: 0;
    font-size: 15px;
}

/* Laptop (Elementor 1025-1366, measured 1025-1280): the 1440px container's
   90px gutters + 300px TOC + 64px gap squeezed the reading column to
   481-736px (53-82 chars/line). Narrower gutters, a 240px rail and a 40px
   gap keep the column at 649-800px across the whole range. */
@media (1025px <= width <= 1280.98px) {
    .blog-single__body.container {
        padding-left: 48px;
        padding-right: 48px;
    }

    .blog-single__body--has-toc {
        grid-template-columns: minmax(0, 800px) 240px;
        column-gap: 40px;
    }

    .blog-single__toc {
        padding-left: 24px;
    }
}

/* Tablet (768-1024): the column spanned the full width, up to 116 chars
   per line. Cap the body at the reading width and centre it. */
@media (768px <= width <= 1024.98px) {
    .blog-single__body.container {
        max-width: 840px;
    }
}

@media (width <= 1024.98px) {
    .blog-single__body,
    .blog-single__body--has-toc {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 32px;
        padding-top: 40px;
        padding-bottom: 56px;
    }
    .blog-single__body > .blog-single__header {
        order: -2;
        margin-bottom: 0;
    }
    .blog-single__toc-col {
        order: -1;
    }
}

/* =========================================================================
   Table of Contents
   ========================================================================= */

.blog-single__toc {
    --toc-accent: #d52838;
    --toc-text: #2b2824;
    --toc-muted: #6a6a6a;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
}

.blog-single__toc-list,
.blog-single__toc-sublist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-single__toc-item {
    margin: 0;
    padding: 0;
}

.blog-single__toc-item::marker {
    content: none;
}

.blog-single__toc-link {
    display: block;
    color: var(--toc-text);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s;
}

.blog-single__toc-item--h3 > .blog-single__toc-link {
    padding-left: 24px;
    color: var(--toc-muted);
    font-size: 16px;
}

.blog-single__toc-link:hover,
.blog-single__toc-link:focus-visible {
    color: var(--toc-accent);
}

.blog-single__toc-link.is-active {
    color: var(--toc-accent);
}

/* Desktop: sticky rail with red left border */
@media (width >= 1025px) {
    .blog-single__toc {
        position: sticky;
        top: calc(var(--one-sticky-offset, 100px) + 32px);
        max-height: calc(100vh - var(--one-sticky-offset, 100px) - 64px);
        overflow-y: auto;
        border-left: 3px solid var(--toc-accent);
        padding: 4px 0 4px 40px;
        scrollbar-width: thin;
    }

    .blog-single__toc-toggle {
        display: none;
    }

    .blog-single__toc-heading {
        margin: 0 0 24px;
        color: var(--toc-accent);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .blog-single__toc-link {
        padding: 9px 0;
    }

    .blog-single__toc-item--h2:first-child > .blog-single__toc-link {
        padding-top: 0;
    }
}

/* Mobile/tablet: collapsible card above the content */
@media (width <= 1024.98px) {
    .blog-single__toc {
        border: 1px solid #e5e2dd;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        overflow: hidden;
        background: #fff;
    }

    .blog-single__toc-heading {
        display: none;
    }

    .blog-single__toc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        width: 100%;
        margin: 0;
        padding: 18px 24px;
        border: 0;
        border-radius: 0;
        background: var(--toc-accent);
        color: #fff;
        font-family: inherit;
        font-size: 19px;
        font-weight: 700;
        line-height: 1.3;
        text-align: left;
        cursor: pointer;
    }

    .blog-single__toc-toggle:focus-visible {
        outline: 2px solid #fff;
        outline-offset: -4px;
    }

    .blog-single__toc-chevron {
        flex: 0 0 auto;
        width: 12px;
        height: 12px;
        border-right: 2.5px solid currentColor;
        border-bottom: 2.5px solid currentColor;
        transform: translateY(-3px) rotate(45deg);
        transition: transform 0.2s;
    }

    .blog-single__toc.is-open .blog-single__toc-chevron {
        transform: translateY(3px) rotate(-135deg);
    }

    .blog-single__toc-nav {
        display: none;
        padding: 8px 24px 16px;
    }

    .blog-single__toc.is-open .blog-single__toc-nav {
        display: block;
    }

    .blog-single__toc-link {
        padding: 10px 0;
        font-size: 18px;
    }

    .blog-single__toc-item--h3 > .blog-single__toc-link {
        font-size: 17px;
    }
}

/* =========================================================================
   Legacy block markup inside the reading column
   Old block-builder posts carry wrappers like <div class="wysiwyg-wrapper container">;
   the global `.container` (1440px, 90px gutters) must not apply inside the column.
   ========================================================================= */

.blog-single__prose .container,
.blog-single__prose .wysiwyg-wrapper {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Elementor-built post rendered inside the column: let sections span the column. */
.blog-single__content--elementor .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100%;
}

/* One Academy "Sync Padding & Margin" on a post's top-level container adds
   page-style side padding (90px desktop / 20px tablet+mobile) INSIDE the
   800px reading column - text shrank to 620px on desktop, 376px on a 1100px
   laptop, 310px on phones (18 posts, mostly the "tight" preset). The column
   already provides the gutters, so neutralise the horizontal part here;
   vertical padding/margin presets and every use on pages are untouched. */
.blog-single__prose .e-con.oasp--pad-on-yes,
.blog-single__prose .elementor-section.oasp--pad-on-yes {
    padding-left: 0;
    padding-right: 0;
}

.blog-single__content--elementor .elementor-widget-text-editor {
    font-size: inherit;
    line-height: inherit;
}

/* Elementor Image Carousel in the reading column, desktop only: every slide
   3:2 and centre-cropped, so one portrait image no longer sets the track
   height for all 17 (Swiper sizes the track to the tallest slide). Reads the
   same variables One Academy's per-widget "Slide Aspect Ratio" control writes
   on .swiper-slide-inner, so an explicit choice there (incl. "Auto") wins.
   Tablet/mobile are left exactly as Elementor renders them. */
@media (width >= 1025px) {
    .blog-single__prose .elementor-widget-image-carousel .swiper-slide-inner {
        aspect-ratio: var(--one-slide-ratio, 3 / 2);
        overflow: hidden;
    }

    .blog-single__prose .elementor-widget-image-carousel .swiper-slide-inner .swiper-slide-image {
        display: block;
        width: var(--one-slide-img-w, 100%);
        height: var(--one-slide-img-h, 100%);
        object-fit: cover;
        object-position: center;
    }
}

/* =========================================================================
   Post content typography (classic / Gutenberg only — Elementor posts keep widget styles)
   ========================================================================= */

.blog-single__prose {
    color: #2b2824;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.blog-single__prose > *:first-child {
    margin-top: 0;
}

.blog-single__prose > *:last-child {
    margin-bottom: 0;
}

.blog-single__prose p {
    margin: 0 0 24px;
    font-size: inherit;
    line-height: inherit;
}

/* Headings — anchored, offset for the sticky header */
.blog-single__prose h2,
.blog-single__prose h3,
.blog-single__prose h4,
.blog-single__prose h5,
.blog-single__prose h6 {
    clear: both;
    scroll-margin-top: calc(var(--one-sticky-offset, 100px) + 24px);
}

.blog-single__prose h2 {
    margin: 64px 0 24px;
    color: #d52838;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.blog-single__prose h3 {
    margin: 48px 0 16px;
    color: #d52838;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.blog-single__prose h4 {
    margin: 40px 0 12px;
    color: #2b2824;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

.blog-single__prose h5,
.blog-single__prose h6 {
    margin: 32px 0 12px;
    color: #2b2824;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

/* Heading colours: H1-H3 brand red, H4+ dark, on every breakpoint.
   Specificity (0,2,1) beats the Elementor kit's global heading colour but
   stays below per-element Elementor rules (Heading widget colour, inline
   styles), so a colour set on a specific widget in the editor still wins.
   The hero title (.blog-single__hero-title) is outside .blog-single__prose
   and stays white. */
.blog-single__content.blog-single__prose h1,
.blog-single__content.blog-single__prose h2,
.blog-single__content.blog-single__prose h3 {
    color: #d52838;
}

.blog-single__content.blog-single__prose h4,
.blog-single__content.blog-single__prose h5,
.blog-single__content.blog-single__prose h6 {
    color: #2b2824;
}

@media (width <= 1024.98px) {
    .blog-single__prose {
        font-size: 17px;
    }
    .blog-single__prose h2 {
        margin-top: 48px;
        font-size: 30px;
    }
    .blog-single__prose h3 {
        margin-top: 36px;
        font-size: 23px;
    }
    .blog-single__prose h4 {
        font-size: 19px;
    }
}

/* Links */
.blog-single__prose a:not(.wp-block-button__link):not(.cta-button__text) {
    color: #d52838;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.blog-single__prose a:not(.wp-block-button__link):not(.cta-button__text):hover {
    color: #a81d2b;
}

/* Lists */
.blog-single__prose ul,
.blog-single__prose ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.blog-single__prose ul {
    list-style: disc outside;
}

.blog-single__prose ol {
    list-style: decimal outside;
}

.blog-single__prose li {
    margin: 0 0 10px;
    padding-left: 4px;
    font-size: inherit;
}

.blog-single__prose ul ::marker,
.blog-single__prose ol ::marker {
    color: #d52838;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
}

.blog-single__prose li > ul,
.blog-single__prose li > ol {
    margin: 10px 0 0;
    font-size: inherit;
}

.blog-single__prose li a {
    font-weight: inherit;
}

/* Blockquote */
.blog-single__prose blockquote,
.blog-single__prose .wp-block-quote {
    margin: 40px 0;
    padding: 24px 32px;
    border-left: 4px solid #d52838;
    background: #f7f5f2;
    color: #2b2824;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
}

.blog-single__prose blockquote p {
    margin: 0 0 12px;
    font-size: inherit;
    line-height: inherit;
}

.blog-single__prose blockquote p:last-child {
    margin-bottom: 0;
}

.blog-single__prose blockquote cite,
.blog-single__prose .wp-block-quote cite {
    display: block;
    margin-top: 12px;
    color: #6a6a6a;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-style: normal;
}

/* Images, figures, embeds */
.blog-single__prose img {
    max-width: 100%;
    height: auto;
}

/* Images dropped straight into the editor (TinyMCE / Elementor Text Editor)
   arrive as <div><img></div>, <p><img></p> or <p><a><img></a></p> - no
   <figure>, no class - so they got none of the figure rhythm below and the
   next paragraph sat flush against the image (0px for a bare <div>, 24px for
   a <p>). Give those class-less wrappers the same 40px as figures. Paragraphs
   are matched only when the image is their sole child, so inline images in
   running text are untouched; aligned floats keep their own rules. */
.blog-single__prose div:not([class]):has(> img),
.blog-single__prose div:not([class]):has(> a > img),
.blog-single__prose p:not([class]):has(> img:only-child),
.blog-single__prose p:not([class]):has(> a:only-child > img:only-child) {
    margin: 40px 0;
}

.blog-single__prose div:not([class]) > img,
.blog-single__prose div:not([class]) > a > img,
.blog-single__prose p:not([class]) > img:only-child,
.blog-single__prose p:not([class]) > a:only-child > img:only-child {
    display: block;
    max-width: 100%;
    height: auto;
}

.blog-single__prose figure,
.blog-single__prose .wp-block-image,
.blog-single__prose .wp-block-embed,
.blog-single__prose .wp-block-video,
.blog-single__prose .wp-block-gallery {
    margin: 40px 0;
}

.blog-single__prose .wp-block-image img,
.blog-single__prose p > img.aligncenter,
.blog-single__prose p > img.alignnone {
    display: block;
}

.blog-single__prose .wp-block-image.aligncenter,
.blog-single__prose .aligncenter {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.blog-single__prose .alignleft {
    float: left;
    margin: 8px 32px 24px 0;
}

.blog-single__prose .alignright {
    float: right;
    margin: 8px 0 24px 32px;
}

.blog-single__prose .alignwide,
.blog-single__prose .alignfull {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

@media (width <= 640.98px) {
    .blog-single__prose .alignleft,
    .blog-single__prose .alignright {
        float: none;
        margin: 24px 0;
    }
}

.blog-single__prose figcaption,
.blog-single__prose .wp-caption-text {
    margin: 10px 0 0;
    color: #6a6a6a;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.blog-single__prose .wp-caption {
    max-width: 100%;
}

.blog-single__prose .wp-block-embed__wrapper iframe,
.blog-single__prose iframe,
.blog-single__prose video {
    max-width: 100%;
}

/* Video embeds pasted as a bare <iframe width="640" height="360"> (or the
   legacy full-width-video block when its CSS partition is not loaded) keep a
   fixed pixel height while max-width shrinks them, so on phones a 16:9 video
   became a ~1:1 letterboxed square, and a Vimeo embed collapsed to 150px.
   Elementor's Video widget manages its own ratio and is excluded. */
.blog-single__prose iframe[src*="youtube.com/embed"]:not(.elementor-video-iframe),
.blog-single__prose iframe[src*="youtube-nocookie.com/embed"]:not(.elementor-video-iframe),
.blog-single__prose iframe[src*="player.vimeo.com"]:not(.elementor-video-iframe) {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.blog-single__prose p:not([class]):has(> iframe:only-child) {
    margin: 40px 0;
}

/* =========================================================================
   Tables — one design for every pasted table (see one_spt_normalize_tables():
   attributes/inline styles are stripped and a bold first row becomes <thead>).
   Card with a red header row, hairline row separators, bold first column;
   scrolls horizontally inside the card on phones.
   ========================================================================= */

.blog-single__prose .blog-single__table-scroll {
    margin: 40px 0;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    background: #fff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.blog-single__prose .blog-single__table-scroll + .blog-single__table-caption {
    margin: -28px 0 40px;
    color: #6a6a6a;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.blog-single__prose table {
    width: 100%;
    min-width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #4a4a4a;
}

.blog-single__prose th,
.blog-single__prose td {
    padding: 22px 28px;
    border: 0;
    border-bottom: 1px solid #ece9e4;
    text-align: left;
    vertical-align: top;
    min-width: 160px;
}

.blog-single__prose th,
.blog-single__prose thead td {
    background: #d52838;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    border-bottom: 0;
}

.blog-single__prose tbody tr:last-child td {
    border-bottom: 0;
}

/* First column: row label */
.blog-single__prose tbody td:first-child {
    color: #2b2824;
    font-weight: 600;
}

.blog-single__prose td strong,
.blog-single__prose td b {
    color: #2b2824;
    font-weight: 600;
}

.blog-single__prose td a {
    color: #d52838;
}

.blog-single__prose td ul,
.blog-single__prose td ol {
    margin: 0;
    padding-left: 20px;
}

.blog-single__prose td li {
    margin: 0 0 6px;
}

/* No zebra: the design uses separators only */
.blog-single__prose tbody tr:nth-child(even) td,
.blog-single__prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td,
.blog-single__prose .wp-block-table.is-style-stripes tbody tr:nth-child(even) td {
    background: #fff;
}

@media (width <= 1024.98px) {
    .blog-single__prose th,
    .blog-single__prose td {
        padding: 18px 20px;
    }
}

@media (width <= 640.98px) {
    .blog-single__prose .blog-single__table-scroll {
        margin: 32px 0;
        border-radius: 12px;
    }
    .blog-single__prose table {
        font-size: 16px;
    }
    .blog-single__prose th,
    .blog-single__prose td {
        padding: 16px 18px;
        min-width: 150px;
    }
    .blog-single__prose th,
    .blog-single__prose thead td {
        font-size: 16px;
    }
}

/* Misc */
.blog-single__prose hr {
    height: 0;
    margin: 48px 0;
    border: 0;
    border-top: 1px solid #e5e2dd;
    background: none;
}

.blog-single__prose strong,
.blog-single__prose b {
    font-weight: 700;
}

.blog-single__prose pre {
    margin: 0 0 24px;
    font-size: 15px;
}

.blog-single__prose code {
    padding: 2px 6px;
    background: #f3f1ee;
    font-size: 0.9em;
}

.blog-single__prose pre code {
    padding: 0;
    background: none;
}

.blog-single__prose .wp-block-buttons {
    margin: 32px 0;
}

/* =========================================================================
   Site-wide sections after the article (OS Panel → Single Post Sections)
   1) Keep reading — related posts. Reuses the Blog Card Row structure
      (blog-card-row__* from base CSS: 3/2/1-column grid, Glide slider ≤640px)
      with the blog card look layered on top.
   2) Stay connected — Gravity Form in a dark band.
   ========================================================================= */

.blog-single__related {
    padding: 80px 0 88px;
    background: #f7f5f2;
}

.blog-single__section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.blog-single__eyebrow {
    margin: 0 0 12px;
    color: #d52838;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.blog-single__section-title {
    margin: 0;
    color: #2b2824;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
}

.blog-single__section-link {
    flex: 0 0 auto;
    padding-bottom: 6px;
    color: #d52838;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.blog-single__section-link:hover,
.blog-single__section-link:focus-visible {
    color: #a81d2b;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.blog-single__arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s;
}

a:hover > .blog-single__arrow {
    transform: translateX(3px);
}

/* Cards are the Blog Card Row component exactly as base.css styles it
   (image + arrow badge, category, title, excerpt, "Read More", bottom rule);
   only the wrapper margin, grid gap and slider bullets are set here. */
.blog-single__related .blog-card-row__wrapper {
    margin: 0;
}

.blog-single__related .blog-card-row__cards-grid {
    gap: 32px;
}

.blog-single__related-glide .blog-card-row__track {
    width: 100%;
}

.blog-single__related-bullets {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.blog-single__related-bullets .glide__bullet {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #e4b3b8;
    box-shadow: none;
    transition: width 0.2s, background-color 0.2s;
}

.blog-single__related-bullets .glide__bullet--active {
    width: 28px;
    background: #d52838;
}

@media (width <= 1024.98px) {
    .blog-single__related {
        padding: 56px 0 64px;
    }
    .blog-single__section-title {
        font-size: 32px;
    }
    .blog-single__related .blog-card-row__cards-grid {
        gap: 24px;
    }
}

@media (width <= 640.98px) {
    .blog-single__related {
        padding: 48px 0 56px;
    }
    .blog-single__section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 28px;
    }
    .blog-single__section-title {
        font-size: 30px;
    }
    .blog-single__related .blog-card-row__glide {
        margin-top: 0;
    }
}

/* ---- Stay connected ---------------------------------------------------- */

.blog-single__subscribe {
    padding: 72px 0;
    background: #2b2824;
    color: #fff;
}

.blog-single__subscribe-inner {
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(0, 3fr) minmax(200px, 1.1fr);
    align-items: center;
    column-gap: 56px;
}

.blog-single__subscribe-title {
    color: #fff;
    font-size: 36px;
}

.blog-single__subscribe-text {
    margin: 0;
    color: #d9d4cc;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

/* Gravity Forms inside the band: white inputs, red full-width button.
   base.css styles GF with !important (grey inputs, red left border,
   fit-content footer with an SVG arrow), so these carry !important too. */
.blog-single__subscribe .gform_wrapper {
    margin: 0;
}

.blog-single__subscribe .gform_wrapper .gform_heading,
.blog-single__subscribe .gform_wrapper .gfield_label,
.blog-single__subscribe .gform_wrapper .gform-field-label,
.blog-single__subscribe .gform_wrapper .gfield_required,
.blog-single__subscribe .gform_wrapper .gform_required_legend {
    display: none !important;
}

.blog-single__subscribe .gform_wrapper .gform_fields {
    row-gap: 14px !important;
    column-gap: 16px !important;
}

.blog-single__subscribe .gform_wrapper .ginput_container input:not([type="checkbox"], [type="radio"]),
.blog-single__subscribe .gform_wrapper .ginput_container select,
.blog-single__subscribe .gform_wrapper .ginput_container textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px !important;
    border: 1px solid #fff !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    color: #2b2824;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 16px !important;
    line-height: 1.4;
    box-shadow: none;
}

.blog-single__subscribe .gform_wrapper input::placeholder,
.blog-single__subscribe .gform_wrapper textarea::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.blog-single__subscribe .gform_wrapper .ginput_container input:focus,
.blog-single__subscribe .gform_wrapper .ginput_container textarea:focus {
    outline: 2px solid #d52838;
    outline-offset: 1px;
}

.blog-single__subscribe .gform_wrapper .gform_footer {
    width: 100% !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
}

.blog-single__subscribe .gform_wrapper .gform_footer::after {
    content: none !important;
    display: none !important;
}

.blog-single__subscribe .gform_wrapper .gform_footer .gform_button,
.blog-single__subscribe .gform_wrapper .gform_footer input[type="submit"],
.blog-single__subscribe .gform_wrapper .gform_footer button {
    display: block;
    width: 100% !important;
    min-height: 54px;
    margin: 0 !important;
    padding: 14px 24px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background-color: #d52838 !important;
    color: #fff !important;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.blog-single__subscribe .gform_wrapper .gform_footer .gform_button:hover,
.blog-single__subscribe .gform_wrapper .gform_footer input[type="submit"]:hover,
.blog-single__subscribe .gform_wrapper .gform_footer button:hover {
    background-color: #b41f2d !important;
}

.blog-single__subscribe .gform_wrapper .gfield_description,
.blog-single__subscribe .gform_wrapper .gfield_validation_message,
.blog-single__subscribe .gform_wrapper .validation_message,
.blog-single__subscribe .gform_wrapper .gform_validation_errors {
    padding: 4px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #ffd7db;
    font-size: 14px;
}

.blog-single__subscribe .gform_wrapper .gform_confirmation_message {
    color: #fff;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 18px;
}

@media (width <= 1024.98px) {
    .blog-single__subscribe {
        padding: 56px 0;
    }
    .blog-single__subscribe-inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 24px;
    }
    .blog-single__subscribe-title {
        font-size: 32px;
    }
}

@media (width <= 640.98px) {
    .blog-single__subscribe {
        padding: 48px 0;
    }
    .blog-single__subscribe-inner {
        row-gap: 20px;
    }
    .blog-single__subscribe-title {
        font-size: 30px;
    }
    .blog-single__subscribe .gform_wrapper .gform_fields {
        row-gap: 12px;
    }
}
