.blog-detail-hero {
    background:
        radial-gradient(ellipse at top left, rgb(13 143 208 / 15%) 0%, transparent 45%),
        radial-gradient(ellipse at top right, rgb(217 111 13 / 18%) 0%, transparent 45%),
        radial-gradient(ellipse at bottom left, rgb(11 101 147 / 10%) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right, rgb(131 67 6 / 12%) 0%, transparent 40%),
        linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 30%, #1a2030 60%, var(--dark-bg-primary) 100%);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 25%, rgba(13, 159, 232, .08), transparent),
        radial-gradient(1px 1px at 90% 20%, rgba(237, 131, 33, .07), transparent),
        radial-gradient(1px 1px at 20% 75%, rgba(13, 159, 232, .05), transparent),
        radial-gradient(1px 1px at 75% 80%, rgba(237, 131, 33, .08), transparent);
    background-size: 500px 400px;
    animation: bdHeroFloat 22s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bdHeroFloat {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    33% {
        transform: translateX(-8px) translateY(-4px);
    }

    66% {
        transform: translateX(6px) translateY(-8px);
    }
}

.bdh-content {
    position: relative;
    z-index: 2;
/*     max-width: 820px; */
}

/* Breadcrumb */
.tg-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tg-breadcrumb a {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .45);
    text-decoration: none;
    transition: color .2s;
}

.tg-breadcrumb a:hover {
    color: rgba(255, 255, 255, .8);
}

.tg-breadcrumb .tg-bc-sep {
    color: rgba(255, 255, 255, .2);
}

.tg-breadcrumb .tg-bc-current {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .5);
}

/* Title */
.bdh-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 24px;
    letter-spacing: -.3px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .2);
}

/* Meta */
.bdh-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bdh-author {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .6);
    font-weight: 500;
}

.bdh-dot {
    color: rgba(255, 255, 255, .25);
    font-size: 12px;
}

.bdh-date {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .45);
    font-weight: 400;
}

/* ── Article wrapper ───────────────────────────────────────── */
.bd-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 52px 24px 80px;
}

/* ── Share — floats inside featured image top right ────────── */
.bd-share-row {
    display: none;
    /* controlled by JS positioning */
}

.bd-share-wrap {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
}

.bd-share-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #495057;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    transition: background .18s, color .18s, box-shadow .18s;
}

.bd-share-trigger:hover,
.bd-share-trigger.open {
    background: #fff;
    color: #0d9fe8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}

/* Dropdown */
.bd-share-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .10);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 100;
}

.bd-share-dropdown.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.bd-share-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, color .15s ease;
}

.bd-share-item:hover {
    background: #f8f9fa;
    color: #0f1419;
    text-decoration: unset;
}

.bd-share-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
    color: #adb5bd;
}

.bd-share-item:hover i {
    color: #495057;
}

/* ── Featured image — share button floats inside ───────────── */
.bd-featured-img {
    width: 100%;
    border-radius: 14px;
    overflow: visible;
    background: #e4e8ed;
    margin-bottom: 40px;
    position: relative;
}

.bd-featured-img>.bd-share-wrap {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
}

.bd-featured-img img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
}

/* ── Blog content — WordPress the_content() output ─────────── */
.blog-content {
    font-size: 17px;
    line-height: 1.82;
    color: #2d3748;
}

/* Paragraphs */
.blog-content p {
    margin: 0 0 22px;
}

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

/* Headings */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: #0f1419;
    font-weight: 700;
    line-height: 1.3;
    margin: 40px 0 14px;
    letter-spacing: -.15px;
}

.blog-content h2 {
    font-size: 1.45rem;
}

.blog-content h3 {
    font-size: 1.2rem;
}

.blog-content h4 {
    font-size: 1rem;
}

/* Lists */
.blog-content ul,
.blog-content ol {
    padding-left: 22px;
    margin: 0 0 22px;
}

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

/* Blockquote — WP block + classic editor */
.blog-content blockquote,
.blog-content .wp-block-quote {
    margin: 32px 0;
    padding: 6px 0 6px 22px;
    border-left: 3px solid #0d9fe8;
    font-size: 18px;
    font-style: italic;
    color: #495057;
    line-height: 1.72;
}

.blog-content blockquote p,
.blog-content .wp-block-quote p {
    margin: 0;
}

/* Inline code */
.blog-content code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    background: #f0f7ff;
    color: #0d9fe8;
    padding: 2px 7px;
    border-radius: 5px;
}

/* Code block */
.blog-content pre,
.blog-content .wp-block-code {
    background: #0f1419;
    border-radius: 12px;
    padding: 22px 26px;
    margin: 28px 0;
    overflow-x: auto;
}

.blog-content pre code,
.blog-content .wp-block-code code {
    background: none;
    color: #e2e8f0;
    font-size: 13.5px;
    padding: 0;
    border-radius: 0;
    line-height: 1.7;
}

/* Images — WP block-image + classic */
.blog-content img,
.blog-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 28px auto;
}

.blog-content .wp-block-image {
    margin: 28px 0;
}

.blog-content figcaption,
.blog-content .wp-block-image figcaption {
    text-align: center;
    font-size: 13px;
    color: #adb5bd;
    margin-top: 8px;
    font-style: italic;
}

/* Separator */
.blog-content hr,
.blog-content .wp-block-separator {
    border: none;
    border-top: 1px solid #f0f2f5;
    margin: 36px 0;
}

/* Table */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15px;
}

.blog-content th,
.blog-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
}

.blog-content th {
    font-weight: 700;
    color: #0f1419;
    background: #f8f9fa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Links */
.blog-content a {
    color: #0d9fe8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

/* Strong */
.blog-content strong {
    color: #0f1419;
    font-weight: 700;
}

/* ── Latest Posts ──────────────────────────────────────────── */
.bd-latest {
    background: #f8f9fa;
    border-top: 1px solid #f0f2f5;
    padding: 64px 0 80px;
}

.bd-latest-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.bd-latest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.bd-latest-title {
    font-size: 2rem;
    font-weight: 600;
    color: #0f1419;
    margin: 0;
}

.bd-latest-arrows {
    display: flex;
    gap: 10px;
}

.bd-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.bd-arrow:hover {
    border-color: #0f1419;
    color: #0f1419;
}

.bd-arrow.disabled {
    opacity: .3;
    pointer-events: none;
}

/* Slider */
.bd-slider-wrap {
    overflow: hidden;
}

.bd-slider-track {
    display: flex;
    gap: 28px;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.bd-slide-card {
    flex: 0 0 calc((100% - 56px) / 3);
    text-decoration: none;
    display: block;
}

.bd-slide-card:hover{
    text-decoration: unset;
}

.bd-sc-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #e4e8ed;
    margin-bottom: 14px;
}

.bd-sc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .3s ease;
}

.bd-slide-card:hover .bd-sc-thumb img {
    opacity: .85;
}

.bd-sc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bd-sc-type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.bd-sc-type-blog {
    color: #0d9fe8;
}

.bd-sc-type-news {
    color: #ed8321;
}

.bd-sc-date {
    font-size: 12px;
    color: #adb5bd;
    font-weight: 500;
}

.bd-sc-title {
    font-size: .95rem;
    font-weight: 600;
    color: #0f1419;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.bd-slide-card:hover .bd-sc-title {
    color: #0d9fe8;
}

.bd-sc-author {
    font-size: 12px;
    color: #adb5bd;
    font-weight: 500;
}

/* View all */
.bd-latest-footer {
    text-align: center;
    margin-top: 48px;
}

.bd-latest-footer:hover{
    text-decoration: unset;
}

.bd-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: 1.5px solid #0f1419;
    border-radius: 4px;
    background: #fff;
    color: #0f1419;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.bd-view-all:hover {
    background: #0f1419;
    color: #fff;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .bd-latest-inner {
        padding: 0 24px;
    }
}

@media (max-width: 900px) {
    .bdh-title {
        font-size: 2rem;
    }

    .bd-slide-card {
        flex: 0 0 calc((100% - 28px) / 2);
    }
}

@media (max-width: 640px) {
    .bd-wrap {
        padding: 36px 20px 60px;
    }

    .bdh-title {
        font-size: 1.65rem;
    }

    .blog-content {
        font-size: 16px;
    }

    .bd-slide-card {
        flex: 0 0 82%;
    }

    .bd-latest-inner {
        padding: 0 20px;
    }

    .bd-latest-title {
        font-size: 1.5rem;
    }

    .blog-detail-hero {
        padding: 56px 0 64px;
    }
}