/* =========================================
   DEVMIXA BLOG — EDITORIAL REDESIGN
   Brand: Deep Teal (#0d4f4f) + Coral (#ff6b4a)
   Complete structural + visual rebuild — not a recolor.
========================================= */

.site-main {
    background: #f7fafa;
}

/* =========================================
   SHARED — eyebrow pill used on both hero bands
========================================= */
.blog-eyebrow,
.post-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffb199;
    margin-bottom: 14px;
}

/* =========================================
   BLOG INDEX HERO (listing page /blogs/)
========================================= */
.blog-index-hero {
    position: relative;
    background: linear-gradient(135deg, #0d4f4f 0%, #083a3a 100%);
    padding: 90px 20px 150px;
    overflow: hidden;
}

.blog-index-hero-glow {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,74,0.28), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.blog-index-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.blog-index-hero h1 {
    color: #ffffff;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.blog-index-hero p {
    color: #cde4e0;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 560px;
}

.blog-index-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 8px 8px 22px;
    max-width: 520px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.blog-index-search i {
    color: #0d4f4f;
    font-size: 15px;
}

.blog-index-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 10px 0;
    background: transparent;
    color: #0f172a;
}

.blog-index-search button {
    background: #ff6b4a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.blog-index-search button:hover {
    background: #e8552f;
    transform: translateY(-1px);
}

/* =========================================
   LISTING SECTION
========================================= */
.blog-listing {
    padding: 0 20px 100px;
    margin-top: -90px;
    position: relative;
    z-index: 2;
}

.blog-search-result-note {
    background: #ffffff;
    border: 1px solid #e2e8e8;
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 28px;
    font-size: 15px;
    color: #475569;
}

.blog-search-result-note a {
    color: #0d4f4f;
    font-weight: 700;
    text-decoration: underline;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

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

/* =========================================
   FEATURED SPOTLIGHT CARD (latest article)
========================================= */
.blog-featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(8,58,58,0.14);
    text-decoration: none;
    margin-bottom: 44px;
    border: 1px solid #e2e8e8;
    transition: transform 0.25s, box-shadow 0.25s;
}

.blog-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(8,58,58,0.20);
}

.blog-featured-card-media {
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

.blog-featured-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-featured-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #ff6b4a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(255,107,74,0.4);
}

.blog-featured-card-content {
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-card-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 10px 0 14px;
}

.blog-featured-card-content p {
    color: #51657a;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
}

.blog-featured-card .read-more {
    color: #0d4f4f;
}

/* =========================================
   BLOG GRID + CARDS
========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.blog-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e8e8;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(8,58,58,0.14);
}

.blog-thumb {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.blog-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(8,58,58,0.12) 100%);
}

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

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

.blog-card-content {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #8396a3;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-meta .dot {
    color: #ff6b4a;
}

.blog-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
}

.blog-title a {
    color: #0f172a;
    text-decoration: none;
}

.blog-card:hover .blog-title a {
    color: #0d4f4f;
}

.blog-excerpt {
    color: #51657a;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff6b4a;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-top: auto;
}

.read-more i {
    font-size: 12px;
    transition: transform 0.2s;
}

.blog-card:hover .read-more i,
.blog-featured-card:hover .read-more i {
    transform: translateX(4px);
}

.blog-no-results {
    background: #ffffff;
    border: 1px dashed #cbd9d9;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: #51657a;
    font-size: 15px;
}

.blog-no-results a {
    color: #0d4f4f;
    font-weight: 700;
}

/* =========================================
   SIDEBAR
========================================= */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8e8;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.05);
}

.sidebar-widget h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
}

.sidebar-widget h4 i {
    color: #ff6b4a;
}

.sidebar-search-form {
    display: flex;
    gap: 8px;
}

.sidebar-search-form input {
    flex: 1;
    border: 1px solid #dbe6e6;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

.sidebar-search-form input:focus {
    border-color: #0d4f4f;
}

.sidebar-search-form button {
    background: #0d4f4f;
    color: #fff;
    border: none;
    border-radius: 10px;
    width: 42px;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-search-form button:hover {
    background: #083a3a;
}

.sidebar-cta {
    background: linear-gradient(160deg, #0d4f4f 0%, #083a3a 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.sidebar-cta::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,74,0.25), transparent 70%);
}

.sidebar-cta-eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffb199;
    margin-bottom: 8px;
}

.sidebar-cta h4 {
    color: #ffffff;
    margin-bottom: 8px;
}

.sidebar-cta h4 i { display: none; }

.sidebar-cta p {
    color: #cde4e0;
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 0 16px;
}

.blog-lead-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.blog-lead-form .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.blog-lead-form input,
.blog-lead-form textarea {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
    resize: vertical;
}

.blog-lead-form button {
    background: #ff6b4a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.blog-lead-form button:hover {
    background: #e8552f;
}

.form-note {
    color: #cde4e0;
    font-size: 12.5px;
    margin: 0;
    text-align: center;
}

.form-note a {
    color: #ffb199;
    font-weight: 700;
}

.form-status {
    font-size: 13px;
    text-align: center;
    min-height: 18px;
}

.form-status-ok { color: #8ef0c6; }
.form-status-err { color: #ffb4a3; }

.sidebar-recent ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-recent li a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef3f3;
}

.sidebar-recent li:last-child a {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-title {
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s;
}

.sidebar-recent li a:hover .recent-title {
    color: #0d4f4f;
}

.recent-date {
    color: #94a3b8;
    font-size: 12px;
}

/* =========================================
   SINGLE POST — HERO / BREADCRUMB BAND
========================================= */
.post-hero {
    position: relative;
    background: linear-gradient(135deg, #0d4f4f 0%, #083a3a 100%);
    padding: 36px 20px 30px;
    overflow: hidden;
}

.post-hero-glow {
    position: absolute;
    top: -80px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,74,0.22), transparent 70%);
    pointer-events: none;
}

.post-hero-inner {
    position: relative;
    z-index: 1;
}

.post-hero .post-hero-eyebrow {
    margin-bottom: 10px;
}

.blog-breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 13.5px;
}

.blog-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9fc9c4;
}

.blog-breadcrumb li:not(:last-child)::after {
    content: "/";
    color: #4a7470;
}

.blog-breadcrumb a {
    color: #cde4e0;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: #ffffff;
}

.blog-breadcrumb li[aria-current="page"] {
    color: #ffffff;
    font-weight: 600;
    max-width: 420px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-breadcrumb ol {
    min-width: 0;
}

/* =========================================
   SINGLE POST — LAYOUT / FEATURED IMAGE
========================================= */
.blog-single {
    padding: 0 20px 100px;
    position: relative;
}

.blog-single .container {
    position: relative;
    z-index: 1;
}

.blog-featured {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: -46px auto 36px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(8,58,58,0.22);
    border: 6px solid #ffffff;
}

.blog-featured-inner img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-layout {
    margin-top: 44px;
}

.blog-post-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 22px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e8f3f2;
    color: #0d4f4f;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
}

.meta-chip i {
    color: #ff6b4a;
    font-size: 12px;
}

/* =========================================
   ARTICLE TYPOGRAPHY
========================================= */
.blog-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    max-width: 100%;
}

.blog-content h1 {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.28;
    letter-spacing: -0.015em;
    margin: 0 0 18px;
}

.blog-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 42px 0 16px;
    padding-left: 16px;
    border-left: 4px solid #ff6b4a;
}

.blog-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: #0d4f4f;
    margin: 30px 0 12px;
}

.blog-content p {
    color: #334155;
    font-size: 16.5px;
    line-height: 1.85;
    margin: 0 0 20px;
}

.blog-content ul,
.blog-content ol {
    color: #334155;
    font-size: 16.5px;
    line-height: 1.8;
    margin: 0 0 20px;
    padding-left: 24px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content a {
    color: #0d4f4f;
    text-decoration: underline;
    text-decoration-color: rgba(13,79,79,0.3);
}

.blog-content a:hover {
    color: #ff6b4a;
}

.blog-content strong {
    color: #0f172a;
}

.blog-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: #f7fafa;
    border-left: 4px solid #0d4f4f;
    border-radius: 0 14px 14px 0;
    color: #0f172a;
    font-size: 17px;
    font-style: italic;
}

.blog-content img {
    border-radius: 16px;
}

/* =========================================
   AUTO TOC (injected by blog-enhance.js)
========================================= */
.blog-toc {
    background: #f7fafa;
    border: 1px solid #e2e8e8;
    border-left: 4px solid #ff6b4a;
    border-radius: 0 16px 16px 0;
    padding: 20px 24px;
    margin: 0 0 32px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding-top 0.3s ease, padding-bottom 0.3s ease, margin-bottom 0.3s ease, border-width 0.3s ease;
}

/* Collapsed state -- toggled by the close (x) button in blog-enhance.js.
   JS sets max-height directly (measured from the real content height,
   so it can transition down to 0 smoothly); this class handles the
   rest of the "folding away" look. */
.blog-toc.is-collapsed {
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    border-width: 0;
    pointer-events: none;
}

.blog-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.blog-toc h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #0d4f4f;
    margin: 0;
}

.toc-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(13,79,79,0.08);
    color: #0d4f4f;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.toc-close:hover {
    background: #ff6b4a;
    color: #ffffff;
}

.toc-close:active {
    transform: scale(0.88);
}

.blog-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-toc a {
    color: #334155;
    font-size: 14.5px;
    text-decoration: none;
    font-weight: 600;
}

.blog-toc a:hover {
    color: #ff6b4a;
}

/* =========================================
   INLINE CTA
========================================= */
.blog-inline-cta {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #0d4f4f 0%, #083a3a 100%);
    border-radius: 20px;
    padding: 32px;
    margin: 44px 0 10px;
    position: relative;
    overflow: hidden;
}

.blog-inline-cta::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,74,0.25), transparent 70%);
}

.inline-cta-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b4a;
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.inline-cta-inner {
    position: relative;
    z-index: 1;
}

.inline-cta-eyebrow {
    display: inline-block;
    color: #ffb199;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.blog-inline-cta h3 {
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    margin: 0 0 8px;
}

.blog-inline-cta p {
    color: #cde4e0;
    font-size: 14.5px;
    margin: 0 0 18px;
}

.inline-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-cta-actions .btn-gradient,
.inline-cta-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.inline-cta-actions .btn-gradient {
    background: #ff6b4a;
    color: #fff;
}

.inline-cta-actions .btn-gradient:hover {
    background: #e8552f;
    transform: translateY(-2px);
}

.inline-cta-actions .btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,0.4);
}

.inline-cta-actions .btn-outline:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* =========================================
   SHARE BAR
========================================= */
.blog-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 36px 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8e8;
    border-bottom: 1px solid #e2e8e8;
}

.share-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.share-label i {
    color: #ff6b4a;
}

.share-links {
    display: flex;
    gap: 10px;
}

.share-ico,
.share-copy {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f5;
    color: #0d4f4f;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.share-ico:hover,
.share-copy:hover {
    transform: translateY(-3px);
    background: #0d4f4f;
    color: #ffffff;
}

.share-copy-done {
    background: #1fa971 !important;
    color: #fff !important;
}

/* =========================================
   AUTHOR BOX
========================================= */
.blog-author-box {
    background: #f7fafa;
    border: 1px solid #e2e8e8;
    border-radius: 20px;
    padding: 32px;
    margin: 36px 0;
}

.author-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ff6b4a;
    margin-bottom: 18px;
}

.author-inner {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.author-avatar-ring {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #0d4f4f, #ff6b4a);
}

.author-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #ffffff;
}

.author-role {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: #ff6b4a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.author-content h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}

.author-content p {
    color: #51657a;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 10px;
}

.author-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d4f4f;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-top: 6px;
}

.author-btn:hover {
    color: #ff6b4a;
}

/* =========================================
   PREV / NEXT NAV
========================================= */
.blog-prevnext {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.prevnext-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e2e8e8;
    border-radius: 16px;
    padding: 18px 20px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.prevnext-link:hover {
    border-color: #0d4f4f;
    transform: translateY(-2px);
}

.prevnext-next {
    justify-content: flex-end;
    text-align: right;
}

.prevnext-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8f3f2;
    color: #0d4f4f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.prevnext-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.prevnext-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.prevnext-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prevnext-spacer { display: block; }

/* =========================================
   RELATED ARTICLES
========================================= */
.related-posts {
    padding: 10px 20px 90px;
}

.related-posts h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 26px;
    padding-left: 16px;
    border-left: 4px solid #ff6b4a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    background: #ffffff;
    border: 1px solid #e2e8e8;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(15,23,42,0.05);
    transition: transform 0.25s, box-shadow 0.25s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(8,58,58,0.12);
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8396a3;
    font-weight: 600;
    margin-bottom: 10px;
}

.related-meta .dot { color: #ff6b4a; }

.related-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.related-title-link {
    color: #0f172a;
    text-decoration: none;
}

.related-card:hover .related-title-link {
    color: #0d4f4f;
}

.related-excerpt {
    color: #51657a;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr; }
    /* Sidebar (search / lead form / recent posts) now follows the
       actual article in reading order on mobile -- it used to jump
       ahead of the article via "order: -1", which buried the content
       people actually came for below search/CTA widgets. */
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .blog-featured-card { grid-template-columns: 1fr; }
    .blog-featured-card-media { min-height: 220px; }
    .blog-index-hero { padding: 70px 20px 130px; }
    .blog-listing { margin-top: -70px; }
}

@media (max-width: 640px) {
    .blog-index-search { padding: 6px 6px 6px 16px; }
    .blog-index-search button { padding: 11px 16px; font-size: 13px; }
    .blog-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .author-inner { flex-direction: column; align-items: flex-start; }
    .blog-prevnext { grid-template-columns: minmax(0, 1fr); }
    .prevnext-next { justify-content: flex-start; text-align: left; }
    .blog-share-bar { justify-content: flex-start; }
    .blog-featured { margin: -30px auto 28px; border-width: 4px; }
    .blog-content h1 { font-size: 26px; }
    .blog-content h2 { font-size: 20px; }
}
