
/* =========================================
   BLOG DETAILS PAGE
========================================= */

.blog-detail-hero {
    position: relative;
    padding: 65px 0 75px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 15%, rgba(221, 3, 17, .10), transparent 30%),
        var(--bg-secondary);
}

.blog-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 13px;
    color: var(--text-muted);
}

.blog-detail-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .25s ease;
}

.blog-detail-breadcrumb a:hover {
    color: var(--r3s-primary);
}

.blog-detail-breadcrumb i {
    font-size: 10px;
}

.blog-detail-hero-content {
    max-width: 900px;
}

.blog-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 30px;
    color: var(--r3s-primary);
    background: rgba(221, 3, 17, .09);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 20px;
}

.blog-detail-hero h1 {
    max-width: 850px;
    margin: 0 0 20px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 800;
    line-height: 1.17;
    letter-spacing: -1.5px;
}

.blog-detail-subtitle {
    max-width: 760px;
    margin-bottom: 28px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 11px;
}

.author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--r3s-primary);
    font-size: 20px;
}

.blog-author strong,
.blog-author span {
    display: block;
}

.blog-author strong {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
}

.blog-author span {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 11px;
}

.meta-divider {
    width: 1px;
    height: 28px;
    background: var(--border-color);
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.blog-meta-item i {
    color: var(--r3s-primary);
}


/* =========================================
   ARTICLE LAYOUT
========================================= */

.blog-detail-section {
    padding: 75px 0 90px;
    background: var(--bg-body);
}

.blog-article {
    min-width: 0;
}

.blog-featured-image {
    position: relative;
    height: 440px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bg-tertiary);
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 0;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
}

.article-share-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.article-share-label i {
    color: var(--r3s-primary);
    font-size: 17px;
}

.article-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    background: var(--card-bg);
    text-decoration: none;
    font-size: 15px;
    transition: all .25s ease;
    cursor: pointer;
}

.share-btn:hover {
    color: #fff;
    background: var(--r3s-primary);
    border-color: var(--r3s-primary);
    transform: translateY(-3px);
}


/* =========================================
   ARTICLE CONTENT
========================================= */

.article-content {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.95;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content .article-intro {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.85;
}

.article-content h2 {
    position: relative;
    margin: 42px 0 17px;
    padding-left: 17px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.4;
    scroll-margin-top: 110px;
}

.article-content h2::before {
    position: absolute;
    content: "";
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 4px;
    border-radius: 5px;
    background: var(--r3s-primary);
}

.article-content ul {
    padding-left: 22px;
    margin: 15px 0 25px;
}

.article-content li {
    padding-left: 5px;
    margin-bottom: 9px;
}

.article-content li::marker {
    color: var(--r3s-primary);
}

.article-highlight {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 24px;
    margin: 30px 0;
    border: 1px solid rgba(221, 3, 17, .18);
    border-left: 4px solid var(--r3s-primary);
    border-radius: 12px;
    background: rgba(221, 3, 17, .045);
}

.article-highlight > i {
    color: var(--r3s-primary);
    font-size: 27px;
}

.article-highlight strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 16px;
}

.article-highlight p {
    margin: 0;
    font-size: 14px;
}

.article-industry-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 25px 0 30px;
}

.article-industry-list > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    background: var(--card-bg);
    font-size: 13px;
    font-weight: 600;
}

.article-industry-list i {
    color: var(--r3s-primary);
    font-size: 20px;
}


/* Article CTA */

.article-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 28px;
    margin: 35px 0;
    border-radius: 14px;
    color: #fff;
    background: #171717;
}

.article-cta-box span {
    color: #ff858b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.article-cta-box h3 {
    margin: 8px 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
}

.article-cta-box p {
    margin: 0;
    color: #c7c7c7;
    font-size: 13px;
}

.btn-r3s {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 21px;
    border: 1px solid var(--r3s-primary);
    border-radius: 7px;
    color: #fff;
    background: var(--r3s-primary);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: all .25s ease;
}

.btn-r3s:hover {
    color: #fff;
    border-color: #b8000c;
    background: #b8000c;
    transform: translateY(-2px);
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 25px 0;
    margin-top: 35px;
    border-top: 1px solid var(--border-color);
}

.article-tags strong {
    margin-right: 4px;
    color: var(--text-primary);
    font-size: 13px;
}

.article-tags a {
    padding: 7px 12px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    background: var(--card-bg);
    font-size: 11px;
    text-decoration: none;
    transition: all .2s ease;
}

.article-tags a:hover {
    color: #fff;
    border-color: var(--r3s-primary);
    background: var(--r3s-primary);
}


/* Author */

.article-author-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--card-bg);
}

.author-avatar-large {
    width: 65px;
    height: 65px;
    font-size: 29px;
}

.article-author-box span {
    color: var(--text-muted);
    font-size: 11px;
}

.article-author-box h4 {
    margin: 3px 0 7px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 800;
}

.article-author-box p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================
   SIDEBAR
========================================= */

.blog-sidebar {
    position: sticky;
    top: 105px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-card {
    padding: 23px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg);
}

.sidebar-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 17px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-heading > i {
    color: var(--r3s-primary);
    font-size: 19px;
}

.sidebar-heading h3 {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
}

.article-toc {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-toc a {
    display: block;
    padding: 9px 12px;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
    transition: all .2s ease;
}

.article-toc a:hover,
.article-toc a.active {
    color: var(--r3s-primary);
    border-left-color: var(--r3s-primary);
    background: rgba(221, 3, 17, .06);
}


/* Sidebar contact */

.sidebar-contact-card {
    position: relative;
    overflow: hidden;
    padding: 27px 23px;
    border-radius: 14px;
    color: #fff;
    background: #171717;
}

.sidebar-contact-card::after {
    position: absolute;
    content: "";
    width: 160px;
    height: 160px;
    right: -65px;
    top: -65px;
    border: 25px solid rgba(221, 3, 17, .2);
    border-radius: 50%;
}

.sidebar-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    margin-bottom: 20px;
    border-radius: 12px;
    color: #fff;
    background: var(--r3s-primary);
    font-size: 23px;
}

.sidebar-contact-card > span {
    color: #ff858b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.sidebar-contact-card h3 {
    position: relative;
    z-index: 1;
    margin: 9px 0 12px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
}

.sidebar-contact-card p {
    color: #c5c5c5;
    font-size: 13px;
    line-height: 1.7;
}

.sidebar-phone {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-phone i {
    color: #ff858b;
}


/* Recent Posts */

.recent-post {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}

.recent-post:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.recent-post img {
    width: 82px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post span {
    color: var(--r3s-primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.recent-post h4 {
    margin: 5px 0 0;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    transition: color .2s ease;
}

.recent-post:hover h4 {
    color: var(--r3s-primary);
}


/* =========================================
   RELATED ARTICLES
========================================= */

.related-blogs-section {
    padding: 85px 0;
    background: var(--bg-secondary);
}

.section-heading {
    margin-bottom: 42px;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--r3s-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-heading h2 {
    margin: 0 0 12px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
}

.section-heading h2 span {
    color: var(--r3s-primary);
}

.section-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.related-blog-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg);
    transition: transform .3s ease, box-shadow .3s ease;
}

.related-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

.related-blog-image {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
}

.related-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.related-blog-card:hover .related-blog-image img {
    transform: scale(1.06);
}

.related-blog-image span {
    position: absolute;
    left: 16px;
    bottom: 15px;
    padding: 7px 12px;
    border-radius: 30px;
    color: #fff;
    background: var(--r3s-primary);
    font-size: 10px;
    font-weight: 700;
}

.related-blog-content {
    padding: 22px;
}

.related-blog-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 11px;
}

.related-blog-meta i {
    color: var(--r3s-primary);
}

.related-blog-content h3 {
    min-height: 58px;
    margin: 0 0 17px;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.55;
}

.related-blog-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color .2s ease;
}

.related-blog-content h3 a:hover {
    color: var(--r3s-primary);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--r3s-primary);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.read-more-link i {
    transition: transform .2s ease;
}

.read-more-link:hover i {
    transform: translateX(5px);
}

.btn-outline-r3s {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border: 1px solid var(--r3s-primary);
    border-radius: 7px;
    color: var(--r3s-primary);
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    transition: all .25s ease;
}

.btn-outline-r3s:hover {
    color: #fff;
    background: var(--r3s-primary);
}


/* Reading progress */

.article-reading-progress {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--r3s-primary);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {
    .blog-detail-section {
        padding: 55px 0 65px;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }

    .recent-posts-card {
        grid-column: 1 / -1;
    }

    .blog-featured-image {
        height: 380px;
    }
}

@media (max-width: 767px) {
    .blog-detail-hero {
        padding: 40px 0 48px;
    }

    .blog-detail-breadcrumb {
        margin-bottom: 22px;
    }

    .blog-detail-hero h1 {
        font-size: 32px;
        letter-spacing: -.8px;
    }

    .blog-detail-subtitle {
        font-size: 14px;
    }

    .blog-detail-meta {
        gap: 13px;
    }

    .meta-divider {
        display: none;
    }

    .blog-featured-image {
        height: 260px;
        border-radius: 12px;
    }

    .article-share-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-content {
        font-size: 14px;
    }

    .article-content .article-intro {
        font-size: 16px;
    }

    .article-content h2 {
        margin-top: 32px;
        font-size: 21px;
    }

    .article-highlight {
        padding: 18px;
    }

    .article-industry-list {
        grid-template-columns: 1fr;
    }

    .article-cta-box {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px;
    }

    .article-author-box {
        align-items: flex-start;
        padding: 18px;
    }

    .blog-sidebar {
        display: flex;
    }

    .related-blogs-section {
        padding: 60px 0;
    }

    .related-blog-image {
        height: 210px;
    }
}

@media (max-width: 420px) {
    .blog-detail-hero h1 {
        font-size: 28px;
    }

    .blog-author strong {
        font-size: 12px;
    }

    .blog-meta-item {
        font-size: 11px;
    }

    .article-author-box {
        flex-direction: column;
    }
}
