/* ============================================================
   TOURWILL — SINGLE BLOG POST STYLES
   Mobile-First · Consistent with template-blog.css
   Depends on: main.css, template-blog.css (shares .blog-card,
   .blog-section-header, .blog-section-title styles)
   ============================================================ */

/* ─── Scoped CSS Variables ─── */
.single-post-page {
    --sp-gold:         #eab308;
    --sp-teal:         #134e4a;
    --sp-teal-dark:    #0c3835;
    --sp-bg:           #fafafa;
    --sp-text:         #1a1a1a;
    --sp-muted:        #6b7280;
    --sp-border:       #e5e7eb;
    --sp-radius:       16px;
    --sp-shadow:       0 4px 20px rgba(0,0,0,0.07);
    --sp-shadow-hover: 0 12px 40px rgba(0,0,0,0.14);
    --sp-transition:   0.3s cubic-bezier(0.4,0,0.2,1);
    --sp-sidebar-w:    340px;
    background-color:  var(--sp-bg);
}

.single-post-page .container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 768px)  { .single-post-page .container { padding-inline: 1.5rem; } }
@media (min-width: 1280px) { .single-post-page .container { padding-inline: 2rem;   } }


/* ============================================================
   HERO
   ============================================================ */

.single-post-hero {
    position: relative;
    min-height: 55vh;
    background-color: var(--sp-teal);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
@media (min-width: 768px) { .single-post-hero { min-height: 65vh; } }

.single-post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(12, 56, 53, 0.95) 0%,
        rgba(12, 56, 53, 0.65) 45%,
        rgba(12, 56, 53, 0.20) 100%
    );
    z-index: 1;
}

.single-post-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Breadcrumb */
.single-post-breadcrumb { margin-bottom: 1.25rem; }

.single-post-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}

.single-post-breadcrumb__list a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--sp-transition);
}
.single-post-breadcrumb__list a:hover { color: var(--sp-gold); }
.single-post-breadcrumb__list [aria-current="page"] {
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Hero Content fade-up animation */
.single-post-hero__content {
    opacity: 0;
    transform: translateY(24px);
    animation: spHeroFadeUp 0.8s cubic-bezier(0.4,0,0.2,1) 0.15s forwards;
    max-width: 760px;
}

@keyframes spHeroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.single-post-hero__category {
    display: inline-block;
    background-color: var(--sp-gold);
    color: var(--sp-teal-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 0.85rem;
    transition: background-color var(--sp-transition);
}
.single-post-hero__category:hover { background-color: #fbbf24; }

.single-post-hero__title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}

.single-post-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.78);
}

.single-post-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.single-post-hero__meta-item svg { color: var(--sp-gold); flex-shrink: 0; }

.single-post-hero__meta-sep { color: rgba(255,255,255,0.35); }

.single-post-hero__author-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color var(--sp-transition);
}
.single-post-hero__author-link:hover { color: var(--sp-gold); }


/* ============================================================
   PAGE LAYOUT — Main + Sidebar
   ============================================================ */

.single-post-layout {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    background-color: var(--sp-bg);
}

.single-post-layout__inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .single-post-layout__inner {
        flex-direction: row;
        gap: 2.5rem;
    }
    .single-post-main {
        flex: 1;
        min-width: 0;
    }
    .single-post-sidebar-area {
        width: var(--sp-sidebar-w);
        flex-shrink: 0;
    }
}

/* Sidebar sticky on desktop */
@media (min-width: 1024px) {
    .single-post-sidebar {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        scrollbar-width: none;
    }
    .single-post-sidebar::-webkit-scrollbar { display: none; }
}

/* Sidebar layout on tablet */
@media (max-width: 1023px) {
    .single-post-sidebar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }
    @media (min-width: 600px) {
        .single-post-sidebar {
            grid-template-columns: repeat(2, 1fr);
        }
        .sp-widget--newsletter {
            grid-column: 1 / -1;
        }
    }
}


/* ============================================================
   ARTICLE CONTENT AREA
   ============================================================ */

.single-post-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* ─── Intro Paragraph ─── */
.single-post-intro__text {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.75;
    color: #374151;
    font-weight: 400;
    margin: 0;
}

.single-post-divider {
    border: none;
    border-top: 1px solid var(--sp-border);
    margin: 0;
}

/* ─── Table of Contents ─── */
.single-post-toc {
    border: 1px solid var(--sp-border);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.single-post-toc__toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sp-text);
    text-align: left;
    transition: background-color var(--sp-transition);
}
.single-post-toc__toggle:hover { background-color: #f9fafb; }

.single-post-toc__toggle svg:first-child { color: var(--sp-gold); flex-shrink: 0; }

.single-post-toc__arrow {
    margin-left: auto;
    transition: transform var(--sp-transition);
    flex-shrink: 0;
    color: var(--sp-muted);
}
.single-post-toc__toggle[aria-expanded="true"] .single-post-toc__arrow {
    transform: rotate(180deg);
}

.single-post-toc__list {
    list-style: none;
    margin: 0;
    padding: 0 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border-top: 1px solid var(--sp-border);
}

.single-post-toc__list li a {
    display: block;
    padding: 0.45rem 0.5rem;
    font-size: 0.87rem;
    color: var(--sp-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color var(--sp-transition), color var(--sp-transition);
    counter-increment: toc-item;
}
.single-post-toc__list li a::before {
    content: counter(toc-item) ". ";
    color: var(--sp-gold);
    font-weight: 700;
}
.single-post-toc__list { counter-reset: toc-item; }
.single-post-toc__list li a:hover {
    background-color: #f0fdf4;
    color: var(--sp-teal);
    padding-left: 0.85rem;
}

/* ─── Article Body Styling ─── */
.blog-content { line-height: 1.8; color: var(--sp-text); font-size: 1rem; }

/* Headings */
.blog-content h2 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 800;
    color: var(--sp-text);
    margin: 2.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--sp-gold);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.blog-content h2:first-child { margin-top: 0; }

.blog-content h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: var(--sp-text);
    margin: 2rem 0 0.75rem;
    line-height: 1.35;
}

.blog-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sp-text);
    margin: 1.5rem 0 0.5rem;
}

/* Paragraphs */
.blog-content p {
    margin: 0 0 1.25rem;
    color: #374151;
    line-height: 1.8;
}
.blog-content p:last-child { margin-bottom: 0; }

/* Lists */
.blog-content ul,
.blog-content ol {
    margin: 0 0 1.25rem 0;
    padding-left: 0;
    list-style: none;
}

.blog-content ul li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.75rem;
    color: #374151;
    font-size: 0.97rem;
    line-height: 1.65;
}
.blog-content ul li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    background-color: var(--sp-gold);
    border-radius: 50%;
}

/* Styled checklist items (for WP block: List with check icons) */
.blog-content ul.wp-block-list li::before,
.blog-content .is-style-checkmark li::before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134e4a' stroke-width='2.5'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 16px 16px;
    width: 16px;
    height: 16px;
    top: 0.55rem;
    background-color: transparent;
    border-radius: 0;
}

.blog-content ol li {
    padding: 0.35rem 0 0.35rem 0.5rem;
    color: #374151;
    font-size: 0.97rem;
    line-height: 1.65;
}

/* Images inside article */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: block;
}

.blog-content figure {
    margin: 1.75rem 0;
}
.blog-content figcaption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--sp-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Blockquotes */
.blog-content blockquote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-left: 4px solid var(--sp-teal);
    border-radius: 0 12px 12px 0;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--sp-teal);
    line-height: 1.7;
}
.blog-content blockquote p { color: var(--sp-teal); margin: 0; }

/* Links inside article */
.blog-content a {
    color: var(--sp-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--sp-transition);
}
.blog-content a:hover { color: var(--sp-gold); }

/* Tables */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    overflow-x: auto;
    display: block;
}
.blog-content th {
    background-color: var(--sp-teal);
    color: #ffffff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}
.blog-content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--sp-border);
    color: #374151;
}
.blog-content tr:last-child td { border-bottom: none; }
.blog-content tr:nth-child(even) td { background-color: #f9fafb; }

/* Gutenberg columns */
.blog-content .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.blog-content .wp-block-column { flex: 1; min-width: 240px; }


/* ─── Inline CTA ─── */
.single-post-inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid var(--sp-border);
    border-left: 4px solid var(--sp-gold);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.single-post-inline-cta__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background-color: rgba(234,179,8,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-gold);
    flex-shrink: 0;
}

.single-post-inline-cta__text {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.single-post-inline-cta__text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sp-text);
}
.single-post-inline-cta__text span {
    font-size: 0.85rem;
    color: var(--sp-muted);
}

.single-post-inline-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--sp-gold);
    color: var(--sp-teal-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.75rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--sp-transition), transform var(--sp-transition);
    flex-shrink: 0;
}
.single-post-inline-cta__btn:hover {
    background-color: #d97706;
    color: #ffffff;
    transform: translateY(-1px);
}
.single-post-inline-cta__btn svg { transition: transform var(--sp-transition); }
.single-post-inline-cta__btn:hover svg { transform: translateX(3px); }


/* ─── Share + Helpful ─── */
.single-post-engagement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--sp-border);
    border-bottom: 1px solid var(--sp-border);
}

.single-post-share__label,
.single-post-helpful__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sp-text);
    margin-bottom: 0.6rem;
}

.single-post-share__icons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--sp-border);
    color: var(--sp-muted);
    background: #ffffff;
    text-decoration: none;
    transition: background-color var(--sp-transition), color var(--sp-transition), border-color var(--sp-transition), transform var(--sp-transition);
    flex-shrink: 0;
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn--facebook:hover  { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn--twitter:hover   { background: #000000; color: #fff; border-color: #000000; }
.share-btn--pinterest:hover { background: #e60023; color: #fff; border-color: #e60023; }
.share-btn--whatsapp:hover  { background: #25d366; color: #fff; border-color: #25d366; }
.share-btn--email:hover     { background: var(--sp-teal); color: #fff; border-color: var(--sp-teal); }

/* Helpful buttons */
.single-post-helpful__buttons {
    display: flex;
    gap: 0.75rem;
}

.helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--sp-border);
    background: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sp-muted);
    cursor: pointer;
    transition: all var(--sp-transition);
}
.helpful-btn:hover { border-color: var(--sp-teal); color: var(--sp-teal); }
.helpful-btn.is-active.helpful-btn--yes { background: #f0fdf4; border-color: var(--sp-teal); color: var(--sp-teal); }
.helpful-btn.is-active.helpful-btn--no  { background: #fef2f2; border-color: #ef4444; color: #ef4444; }


/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */

.single-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Base widget card */
.sp-widget {
    background: #ffffff;
    border-radius: var(--sp-radius);
    padding: 1.5rem;
    box-shadow: var(--sp-shadow);
}

.sp-widget__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--sp-text);
    margin: 0 0 0.3rem;
}

.sp-widget__accent {
    display: block;
    width: 32px;
    height: 3px;
    background-color: var(--sp-gold);
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* Author widget */
.sp-author {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.sp-author__avatar-wrap { flex-shrink: 0; }

.sp-author__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sp-gold);
}

.sp-author__name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sp-text);
    margin-bottom: 0.3rem;
}

.sp-author__bio {
    font-size: 0.82rem;
    color: var(--sp-muted);
    line-height: 1.55;
    margin: 0 0 0.5rem;
}

.sp-author__link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sp-gold);
    text-decoration: none;
    transition: color var(--sp-transition);
}
.sp-author__link:hover { color: var(--sp-teal); }

/* Categories widget (reuses blog-sidebar styles, scoped here) */
.sp-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.sp-categories__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    text-decoration: none;
    color: var(--sp-text);
    font-size: 0.87rem;
    border-radius: 8px;
    transition: background-color var(--sp-transition), color var(--sp-transition);
}
.sp-categories__link:hover { background-color: #f0fdf4; color: var(--sp-teal); }
.sp-categories__icon { color: var(--sp-muted); flex-shrink: 0; display: flex; align-items: center; transition: color var(--sp-transition); }
.sp-categories__link:hover .sp-categories__icon { color: var(--sp-gold); }
.sp-categories__name { flex: 1; font-weight: 500; }
.sp-categories__count { font-size: 0.75rem; color: var(--sp-muted); background: #f3f4f6; padding: 0.15rem 0.45rem; border-radius: 999px; font-weight: 600; }

/* Popular posts widget */
.sp-popular {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sp-popular__link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.sp-popular__thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform var(--sp-transition);
}
.sp-popular__link:hover .sp-popular__thumb { transform: scale(1.04); }

.sp-popular__info { display: flex; flex-direction: column; gap: 0.25rem; }
.sp-popular__title { font-size: 0.85rem; font-weight: 600; color: var(--sp-text); line-height: 1.4; transition: color var(--sp-transition); }
.sp-popular__link:hover .sp-popular__title { color: var(--sp-teal); }
.sp-popular__date { font-size: 0.75rem; color: var(--sp-muted); }

/* Sidebar CTA (dark, with optional background image) */
.sp-widget--cta {
    position: relative;
    background-color: var(--sp-teal-dark);
    background-size: cover;
    background-position: center;
    overflow: visible;
    padding: 2rem 1.5rem;
    border-radius: var(--sp-radius);
}

.sp-cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12,56,53,0.92), rgba(12,56,53,0.75));
    z-index: 1;
    border-radius: var(--sp-radius);
}

.sp-cta__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.sp-cta__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.5;
    margin: 0;
    white-space: normal;
    overflow: visible;
    display: block;
    word-break: break-word;
}

.sp-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background-color: var(--sp-gold);
    color: var(--sp-teal-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.8rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color var(--sp-transition), transform var(--sp-transition);
}
.sp-cta__btn:hover { background-color: #fbbf24; transform: translateY(-1px); }
.sp-cta__btn svg { transition: transform var(--sp-transition); }
.sp-cta__btn:hover svg { transform: translateX(3px); }

/* Newsletter widget */
.sp-widget--newsletter {
    background-color: var(--sp-teal-dark);
    color: #ffffff;
}

.sp-newsletter__title {
    font-size: 0.97rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}
.sp-newsletter__desc {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.sp-newsletter-inline {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.sp-newsletter-inline__input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    font-size: 0.83rem;
    outline: none;
    transition: border-color var(--sp-transition);
}
.sp-newsletter-inline__input::placeholder { color: rgba(255,255,255,0.4); }
.sp-newsletter-inline__input:focus { border-color: var(--sp-gold); }
.sp-newsletter-inline__btn {
    padding: 0.6rem 1rem;
    background-color: var(--sp-gold);
    color: var(--sp-teal-dark);
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--sp-transition);
}
.sp-newsletter-inline__btn:hover { background-color: #fbbf24; }
.sp-newsletter__note { font-size: 0.74rem; color: rgba(255,255,255,0.4); margin: 0.6rem 0 0; }


/* ============================================================
   RELATED POSTS
   ============================================================ */

.single-post-related {
    background-color: var(--sp-bg);
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--sp-border);
}

/* Reuses .blog-card styles from template-blog.css */
.single-post-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 600px) {
    .single-post-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .single-post-related__grid { grid-template-columns: repeat(3, 1fr); }
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate][data-delay="100"] { transition-delay: 0.1s; }
[data-animate][data-delay="200"] { transition-delay: 0.2s; }
[data-animate][data-delay="300"] { transition-delay: 0.3s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Stack inline CTA vertically on small screens */
@media (max-width: 599px) {
    .single-post-inline-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .single-post-inline-cta__btn {
        width: 100%;
        justify-content: center;
    }
    .single-post-engagement {
        flex-direction: column;
        align-items: flex-start;
    }
    .single-post-hero__title { font-size: 1.75rem; }
}