.ticker-wrapper {
    display: flex;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto 24px;
    padding: 10px 18px;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.ticker-label {
    z-index: 1;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;
    margin-right: 18px;
    padding: 5px 12px;
    color: #fff;
    background: #2563eb;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-label-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    animation: blogTickerPulse 1.5s infinite;
}

.ticker-scroll-area {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ticker-content {
    display: inline-flex;
    gap: 35px;
    white-space: nowrap;
    animation: blogTickerMarquee 22s linear infinite;
    will-change: transform;
}

.ticker-wrapper:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
}

.ticker-item:hover {
    color: #60a5fa;
    text-decoration: none;
}

.ticker-item i {
    margin-left: 25px;
    color: #64748b;
    font-size: 6px;
    opacity: 0.5;
}

@keyframes blogTickerMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes blogTickerPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.back-btn-wrap {
    max-width: 1320px;
    margin: 0 auto 16px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #334155;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-back:hover {
    color: #0f172a;
    background: #e2e8f0;
    text-decoration: none;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 32px;
    padding: 0 15px;
}

.full-html-blog-detail {
    padding-top: 120px;
}

.blog-detail-layout.has-no-related {
    grid-template-columns: minmax(0, 1fr);
}

.blog-detail-main {
    min-width: 0;
}

.full-html-blog-main {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.related-blogs-sidebar {
    position: sticky;
    top: 115px;
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.related-blogs-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
}

.related-blogs-heading i {
    color: #2563eb;
}

.related-blog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-blog-card {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 8px;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.related-blog-card:hover {
    color: #0f172a;
    text-decoration: none;
    background: #f8fafc;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.related-blog-thumb {
    display: block;
    flex: 0 0 82px;
    width: 82px;
    height: 62px;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 7px;
}

.related-blog-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-blog-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
}

.related-blog-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.related-blog-info strong {
    display: -webkit-box;
    overflow: hidden;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.related-blog-info small {
    color: #64748b;
    font-size: 10.5px;
}

@media (max-width: 991.98px) {
    .blog-detail-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 16px;
    }

    .related-blogs-sidebar {
        padding: 13px;
    }

    .related-blog-thumb {
        flex-basis: 68px;
        width: 68px;
        height: 54px;
    }
}

@media (max-width: 767.98px) {
    .blog-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .related-blogs-sidebar {
        position: static;
    }

    .related-blog-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .full-html-blog-detail {
        padding-top: 100px;
    }

    .ticker-wrapper {
        margin-right: 12px;
        margin-left: 12px;
        padding: 8px 12px;
    }

    .ticker-label {
        margin-right: 10px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .ticker-item {
        font-size: 12px;
    }

    .back-btn-wrap {
        margin-right: 12px;
        margin-left: 12px;
    }

    .full-html-blog-main {
        padding: 16px;
        border-radius: 12px;
    }

    .blog-detail-layout.has-no-related {
        padding-right: 12px;
        padding-left: 12px;
    }

    .related-blog-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .related-blog-info strong {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-content,
    .ticker-label-dot {
        animation: none;
    }
}
