:root {
    --tbp-bg-dark: #020617;
    --tbp-card-bg: rgba(255, 255, 255, 0.03);
    --tbp-card-border: rgba(255, 255, 255, 0.08);
    --tbp-accent-primary: #3b82f6;
    --tbp-accent-secondary: #8b5cf6;
    --tbp-text-main: #ffffff;
    --tbp-text-muted: #94a3b8;
    --tbp-glass-bg: rgba(255, 255, 255, 0.05);
    --tbp-glass-border: rgba(255, 255, 255, 0.1);
}



/* Nuclear Overrides to force full width and clean theme UI */
.is-codomax-blog-page .entry-header,
.is-codomax-blog-page .post-title,
.is-codomax-blog-page .entry-title,
.is-codomax-blog-page .wp-block-post-title,
.is-codomax-author-profile .entry-header,
.is-codomax-author-profile .post-title,
.is-codomax-author-profile .entry-title,
.is-codomax-author-profile .wp-block-post-title {
    display: none !important;
}

/* Force entire page background to be dark */
html.is-codomax-blog-page,
body.is-codomax-blog-page,
html.is-codomax-author-profile,
body.is-codomax-author-profile {
    background-color: var(--tbp-bg-dark) !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.is-codomax-blog-page .wp-block-group,
.is-codomax-author-profile .wp-block-group {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.is-codomax-blog-page footer,
.is-codomax-blog-page .wp-block-template-part,
.is-codomax-author-profile footer,
.is-codomax-author-profile .wp-block-template-part {
    margin-top: 0 !important;
}

.is-codomax-blog-page .entry-content,
.is-codomax-blog-page .post-content,
.is-codomax-blog-page .page-content,
.is-codomax-blog-page .is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)),

.is-codomax-author-profile .entry-content,
.is-codomax-author-profile .post-content,
.is-codomax-author-profile .page-content,
.is-codomax-author-profile .is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    padding: 0;
    max-width: none !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    width: 100% !important;
    /* overflow handled natively */
}

.is-codomax-blog-page .wp-site-blocks,
.is-codomax-blog-page main,
.is-codomax-author-profile .wp-site-blocks,
.is-codomax-author-profile main {
    padding: 0;
    margin: 0 !important;
}

.is-codomax-blog-page main,
.is-codomax-author-profile main {
    /* overflow handled natively */
}

/* Global Theme Header Override for this page */
.is-codomax-blog-page .codomax-header,
.is-codomax-author-profile .codomax-header {
    padding-top: var(--wp--preset--spacing--30) !important;
    padding-bottom: var(--wp--preset--spacing--30) !important;
    border-bottom: none !important;
}

body.is-codomax-blog-page,
body.is-codomax-author-profile {
    /* overflow-x handled natively */
}

body.is-codomax-blog-page .wp-site-blocks,
body.is-codomax-blog-page main,
body.is-codomax-blog-page .entry-content,
body.is-codomax-blog-page .wp-block-post-content,
body.is-codomax-blog-page .site,
body.is-codomax-blog-page #page,
body.is-codomax-blog-page #content,
body.is-codomax-author-profile .wp-site-blocks,
body.is-codomax-author-profile main,
body.is-codomax-author-profile .entry-content,
body.is-codomax-author-profile article,
body.is-codomax-author-profile .wp-block-post-content,
body.is-codomax-author-profile .site,
body.is-codomax-author-profile #page,
body.is-codomax-author-profile #content {
    overflow: visible !important;
}

.tbp-wrapper {
    background-color: var(--tbp-bg-dark);
    color: var(--tbp-text-main);
    min-height: 100vh;
    padding: 80px 0% 0px !important;
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: 100vw;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}



.tbp-dot-grid {
    display: none !important;
}

.tbp-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    filter: blur(100px);
    border-radius: 50%;
    z-index: 2;
    opacity: 0.15;
    pointer-events: none;
    animation: tbp-blob-float 20s infinite alternate ease-in-out;
}

.tbp-blob-1 {
    top: -100px;
    right: -100px;
    background: var(--tbp-accent-primary);
}

.tbp-blob-2 {
    bottom: -100px;
    left: -100px;
    background: var(--tbp-accent-secondary);
    animation-delay: -5s;
}

.tbp-blob-3 {
    top: 40%;
    left: 30%;
    background: #06b6d4;
    width: 300px;
    height: 300px;
    animation-delay: -10s;
}

@keyframes tbp-blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

@keyframes dots-move {
    from {
        background-position: 0 0 !important;
    }

    to {
        background-position: 30px 30px !important;
    }
}

.tbp-container {
    max-width: 1380px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

/* Header Styles */
.tbp-header {
    text-align: center;
    margin-bottom: 60px;
}

.tbp-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 10px;
    margin-top: 0;
}

.tbp-gradient-text {
    background: linear-gradient(135deg, var(--tbp-accent-primary), var(--tbp-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tbp-subtitle {
    color: var(--tbp-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Search Bar */
.tbp-search-container {
    max-width: 600px;
    margin: 0 auto;
}

.tbp-search-glass {
    background: var(--tbp-glass-bg);
    border: 1px solid var(--tbp-glass-border);
    backdrop-filter: blur(12px);
    padding: 4px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tbp-search-glass:focus-within {
    border-color: var(--tbp-accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.tbp-search-glass svg {
    color: var(--tbp-text-muted);
}

.tbp-search-glass input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    width: 100% !important;
    padding: 12px 0 !important;
    font-size: 1rem !important;
    outline: none !important;
    box-shadow: none !important;
}

.tbp-search-glass input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Navigation Tabs */
.tbp-tabs-nav {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.tbp-tabs-list {
    background: var(--tbp-glass-bg);
    border: 1px solid var(--tbp-glass-border);
    padding: 6px;
    border-radius: 100px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.tbp-tab-btn {
    background: transparent;
    border: none;
    color: var(--tbp-text-muted);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tbp-tab-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--tbp-glass-border);
    object-fit: cover;
}

.tbp-tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tbp-tab-btn.active {
    background: white;
    color: var(--tbp-bg-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tbp-tab-btn.active img {
    border-color: var(--tbp-bg-dark);
}

@media (max-width: 768px) {
    .tbp-tabs-nav {
        justify-content: flex-start;
    }

    .tbp-tabs-list {
        border-radius: 20px;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px;
        scrollbar-width: none;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }

    .tbp-tabs-list::-webkit-scrollbar {
        display: none;
    }
}

/* Tab Content Transitions */
.tbp-tab-content {
    display: none;
    animation: tbp-fadeIn 0.5s ease;
}

.tbp-tab-content.active {
    display: block;
}

/* Blog Grid */
.tbp-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.tbp-card {
    background: var(--tbp-card-bg);
    border: 1px solid var(--tbp-card-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.tbp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.tbp-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.tbp-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.tbp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 24px 24px 0 0;
}

.tbp-card:hover .tbp-card-image img {
    transform: scale(1.1);
    border-radius: 24px 24px 0 0;
}

.tbp-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    z-index: 5;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tbp-card-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #60a5fa;
}

.tbp-card-body {
    padding: 20px;
}

.tbp-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tbp-post-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.tbp-read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tbp-read-more:hover {
    color: white;
    transform: translateX(3px);
}

.tbp-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.tbp-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.tbp-card:hover .tbp-card-title {
    color: var(--tbp-accent-primary);
}

.tbp-card-excerpt {
    color: var(--tbp-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tbp-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--tbp-card-border);
}

.tbp-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tbp-card-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--tbp-glass-border);
}

.tbp-card-author span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tbp-text-main);
}

.tbp-card-date {
    font-size: 0.8rem;
    color: var(--tbp-text-muted);
}

/* Blog Detail View Styles */
.tbp-detail-view {
    max-width: 1350px;
    margin: 0 auto;
    animation: tbp-fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: 80px;
}

/* Reading Progress Bar */
.tbp-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--tbp-accent-primary), var(--tbp-accent-secondary));
    z-index: 9999;
    box-shadow: 0 0 15px var(--tbp-accent-primary);
    transition: width 0.1s ease;
}

.tbp-detail-header {
    margin-bottom: 30px;
}

.tbp-detail-top-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 20px;
}

.tbp-back-btn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    width: 45px;
    height: 45px;
    background: var(--tbp-glass-bg);
    border: 1px solid var(--tbp-glass-border);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tbp-back-btn:hover {
    transform: scale(1.1);
    background: var(--tbp-accent-primary);
    border-color: var(--tbp-accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.tbp-detail-meta {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tbp-detail-meta .tbp-card-tag {
    position: relative;
    top: auto;
    left: auto;
    margin: 0;
}

.tbp-detail-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    margin-top: 0;
    color: white;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tbp-detail-subtitle {
    text-align: center;
    color: var(--tbp-text-muted);
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.tbp-detail-lead {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.4;
    padding-left: 24px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 20px;
}

.tbp-detail-featured-image {
    margin: 20px auto;
    max-width: fit-content;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tbp-detail-featured-image img {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
}

.tbp-detail-footer {
    margin-top: 80px;
    padding: 0;
}

.tbp-author-card {
    background: var(--tbp-glass-bg);
    border: 1px solid var(--tbp-glass-border);
    backdrop-filter: blur(20px);
    border-radius: 35px;
    padding: 45px 50px;
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    transition: all 0.4s ease;
}

.tbp-author-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tbp-glass-border);
    padding: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tbp-author-details {
    flex: 1;
}

.tbp-article-by {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tbp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 8px;
}

.tbp-author-name {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.tbp-author-role {
    display: inline-block;
    background: rgba(255, 171, 0, 0.12);
    color: #ffab00;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 171, 0, 0.25);
}

.tbp-author-bio {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

@media (max-width: 768px) {
    .tbp-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px;
        gap: 30px;
    }

    .tbp-author-image img {
        width: 140px;
        height: 140px;
    }

    .tbp-author-name {
        font-size: 2rem;
    }
}

.tbp-featured-image {
    width: 100%;
    height: 600px;
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: 60px;
    border: 1px solid var(--tbp-glass-border);
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.tbp-featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(10, 11, 14, 0.8), transparent);
}

.tbp-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.tbp-detail-view:hover .tbp-featured-image img {
    transform: scale(1.05);
}

/* .tbp-detail-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 40px;
    line-height: 1.8;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    margin-bottom: 30px;
} */

/* .tbp-detail-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--tbp-accent-primary), transparent);
} */

.tbp-lead {
    font-size: 1.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    margin-top: 0;
    line-height: 1.3;
    padding-left: 30px;
    border-left: 5px solid var(--tbp-accent-primary);
}

.tbp-main-text {
    margin-bottom: 20px;
}

.tbp-main-text p,
.tbp-dummy-text p {
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 19px;
    line-height: 1.4;

}

@keyframes tbp-fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .tbp-wrapper {
        padding-top: 60px;
    }

    .tbp-post-grid {
        grid-template-columns: 1fr;
    }

    .tbp-title {
        font-size: 2.5rem;
    }
}

/* Custom Content Sections Styling */
.tbp-custom-sections {
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* .tbp-section-block {
    padding: 35px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.tbp-section-block:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
} */

.tbp-section-heading {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tbp-section-heading::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--tbp-accent-primary);
    border-radius: 4px;
}

.tbp-section-content {
    color: var(--tbp-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.tbp-section-content p {
    margin-bottom: 20px;
}

.tbp-section-content p:last-child {
    margin-bottom: 0;
}




/* Author Profile Styles */
.tbp-profile-view {
    animation: tbp-fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: 80px;
}

.tbp-profile-header {
    margin-bottom: 60px;
}

.tbp-profile-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-top: 20px;
    position: relative;
    /* max-width: 800px; */
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    border: none;
    border-radius: 24px;
    padding: 20px 0;
    box-shadow: none;
}

.tbp-profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--tbp-accent-primary) 0%, transparent 70%);
    opacity: 0.05;
    filter: blur(50px);
    pointer-events: none;
}

.tbp-profile-avatar {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.tbp-profile-avatar img {
    width: 130px;
    height: 130px;
    border-radius: 20%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.tbp-avatar-ring {
    display: none;
}

.tbp-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tbp-profile-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--tbp-accent-primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.tbp-profile-name {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 5px 0;
    color: #fff;
}

.tbp-profile-role {
    font-size: 1.1rem;
    color: var(--tbp-text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 20px;
}

.tbp-profile-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    margin-top: 0;
}

.tbp-profile-bio p {
    margin-top: 0;
    margin-bottom: 15px;
}

.tbp-profile-bio p:last-child {
    margin-bottom: 0;
}

.tbp-profile-stats {
    display: none;
}

.tbp-profile-social {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    position: static;
}

.tbp-social-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tbp-social-link:hover {
    background: var(--tbp-accent-primary);
    border-color: var(--tbp-accent-primary);
    color: white;
    transform: translateY(-3px);
}

.tbp-social-link svg {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.tbp-social-link:hover svg {
    transform: scale(1.1);
}

.tbp-author-posts {
    margin-top: 80px;
}

.tbp-section-divider {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.tbp-section-divider span {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    white-space: nowrap;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tbp-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--tbp-glass-border), transparent);
}

.tbp-read-more {
    color: var(--tbp-accent-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Author card hover effects */
.tbp-author-card.clickable {
    cursor: pointer;
}

.tbp-author-card.clickable:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--tbp-accent-primary);
    transform: translateY(-5px);
}

.tbp-view-profile-link {
    margin-top: 15px;
    font-weight: 700;
    color: var(--tbp-accent-primary);
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.tbp-author-card:hover .tbp-view-profile-link {
    opacity: 1;
}

@media (max-width: 992px) {
    .tbp-profile-hero {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 20px 0;
    }

    .tbp-profile-stats {
        margin: 0 auto 40px;
    }

    .tbp-profile-social {
        justify-content: flex-start;
    }
}

/* Pagination Styles */
.tbp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-bottom: 80px;
}

.tbp-page-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tbp-glass-bg);
    border: 1px solid var(--tbp-glass-border);
    color: var(--tbp-text-muted);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.tbp-page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-3px);
}

.tbp-page-link.active {
    background: white;
    color: var(--tbp-bg-dark);
    border-color: white;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.tbp-page-link.prev,
.tbp-page-link.next {
    background: rgba(255, 255, 255, 0.05);
}

.tbp-page-link.prev:hover,
.tbp-page-link.next:hover {
    background: var(--tbp-accent-primary);
    border-color: var(--tbp-accent-primary);
}

.tbp-wrapper-profile {
    padding-top: 30px !important;
}

@media (max-width: 500px) {
    .tbp-pagination {
        gap: 8px;
    }

    .tbp-page-link {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

@media (max-width: 425px) {
    .tbp-wrapper {
        padding-top: 80px !important;
    }

    .tbp-wrapper-profile {
        padding-top: 10px !important;

    }

    .tbp-header {
        margin-bottom: 35px;
    }

    .tbp-container {
        padding: 0 15px;
    }

    .tbp-title {
        font-size: 2.2rem;
    }

    .tbp-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .tbp-search-glass {
        padding: 2px 12px;
    }

    .tbp-search-glass input {
        font-size: 0.9rem !important;
    }

    .tbp-tabs-list {
        gap: 5px;
        padding: 5px;
    }

    .tbp-tab-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .tbp-card-body {
        padding: 15px;
    }

    .tbp-card-title {
        font-size: 1.15rem;
    }

    .tbp-card-excerpt {
        font-size: 0.85rem;
    }

    /* Detail Page */
    .tbp-detail-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .tbp-detail-subtitle {
        font-size: 1rem;
    }

    .tbp-detail-content {
        padding: 25px 20px;
        font-size: 1rem;
        border-radius: 25px;
    }

    .tbp-lead {
        font-size: 1.4rem;
        padding-left: 20px;
    }

    .tbp-main-text p,
    .tbp-dummy-text p {
        font-size: 16px;
    }

    .tbp-featured-image {
        height: 300px;
        border-radius: 25px;
        margin-bottom: 30px;
    }

    .tbp-author-card {
        padding: 20px;
        border-radius: 20px;
        gap: 10px;
    }

    .tbp-author-image img {
        width: 100px;
        height: 100px;
    }

    .tbp-author-name {
        font-size: 1.5rem;
    }

    .tbp-author-bio {
        font-size: 15px;
    }

    .tbp-detail-top-nav {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .tbp-detail-top-nav {
        margin-bottom: 10px;
    }

    .tbp-detail-meta {
        grid-column: 1;
    }

    .tbp-detail-content {
        background: transparent !important;
        border: 1px solid transparent !important;
        padding: 0;
    }


    .tbp-section-heading {
        font-size: 1.2rem;
        margin: 0 0 10px 0;
    }

    .tbp-section-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .tbp-custom-sections {
        gap: 10px;
    }

    /* Author Profile Page */
    .tbp-profile-hero {
        padding: 20px 0;
        gap: 0px;
        border-radius: 25px;
    }

    .tbp-profile-avatar img {
        width: 140px;
        height: 140px;
        border-radius: 25px;
    }

    .tbp-profile-name {
        font-size: 2.2rem;
    }

    .tbp-profile-role {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .tbp-profile-bio {
        font-size: 0.95rem;
    }

    .tbp-profile-stats {
        padding: 15px;
        gap: 20px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .tbp-stat-value {
        font-size: 1.2rem;
    }

    .tbp-section-divider {
        margin-bottom: 30px;
        gap: 15px;
    }

    .tbp-section-divider span {
        font-size: 1.5rem;
    }

    .tbp-profile-view {
        padding-bottom: 20px;
    }

    .tbp-detail-footer {
        margin-top: 40px;
    }

    .tbp-back-btn {
        width: 30px;
        height: 30px;
        font-size: 13px !important;
    }

    .tbp-back-btn svg {
        width: 15px;
        height: 15px;
    }
}

/* ==========================================================================
   Premium 3-Column Blog Detail View Styles (Mockup Matching)
   ========================================================================== */

.tbp-detail-view-premium {
    max-width: 1350px;
    margin: 0 auto;
    padding-bottom: 100px;
    position: relative;
    z-index: 10;
}

/* Top Nav Bar */
.tbp-detail-top-nav-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 10px 0;
}

.tbp-back-blog-link {
    color: var(--tbp-text-muted);
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.tbp-back-blog-link svg {
    transition: transform 0.2s ease;
}

.tbp-back-blog-link:hover {
    color: #ffffff;
}

.tbp-back-blog-link:hover svg {
    transform: translateX(-4px);
}

.tbp-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tbp-action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--tbp-text-muted);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tbp-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.tbp-share-btn {
    border-radius: 20px;
    padding: 0 16px;
    width: auto;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 6px;
}

/* Post Meta Badges */
.tbp-post-meta-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tbp-category-pill {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #c084fc !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 100px;
}

.tbp-meta-dot {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.tbp-meta-item {
    color: var(--tbp-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Title & Subtitle */
.tbp-detail-title-new {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0px;
    margin-top: 0;
    color: white;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.tbp-detail-subtitle-new {
    text-align: left;
    color: var(--tbp-text-muted);
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0;
    line-height: 1.6;
}

/* Top Author Row */
.tbp-post-author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    margin-bottom: 40px;
    gap: 20px;
}

.tbp-post-author-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tbp-author-avatar-top {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.tbp-author-meta-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tbp-author-name-top {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.tbp-author-role-top {
    font-size: 0.8rem;
    color: var(--tbp-text-muted);
    font-weight: 500;
}

.tbp-post-author-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tbp-author-social-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--tbp-text-muted);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tbp-author-social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Section (2-Column) */
.tbp-detail-hero-new {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    margin-top: 60px;
}

.tbp-detail-hero-content {
    flex: 1.8;
    min-width: 0;
}

/* Featured Image */
.tbp-detail-featured-image-new {
    flex: 1;
    width: 100%;
    max-width: 50%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tbp-detail-featured-image-new img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1200px) {
    .tbp-detail-hero-new {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .tbp-detail-hero-new {
        flex-direction: column;
        gap: 20px;
    }

    .tbp-detail-hero-content {
        display: contents;
    }

    .tbp-detail-top-nav-new {
        order: 1;
        width: 100%;
    }

    .tbp-detail-featured-image-new {
        order: 2;
        max-width: 100%;
        width: 100%;
    }

    .tbp-post-meta-badges {
        order: 3;
        width: 100%;
        margin-bottom: 5px;
    }

    .tbp-detail-title-new {
        order: 4;
        width: 100%;
    }

    .tbp-detail-subtitle-new {
        order: 5;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tbp-detail-hero-new {
        margin-bottom: 20px;
        margin-top: 20px;
        gap: 2px;
    }

    .tbp-detail-featured-image-new img {
        max-height: 300px;
    }
}

@media (max-width: 500px) {

    .tbp-detail-featured-image-new {
        border-radius: 16px;
    }

    .tbp-detail-featured-image-new img {
        max-height: 250px;
    }

    .tbp-detail-hero-new {
        margin-bottom: 0;
    }

    .tbp-section-content {
        font-size: 15px;
    }
}

/* 3-Column Layout */
.tbp-detail-three-col-layout {
    display: grid;
    grid-template-columns: 240px 1fr 340px;
    gap: 50px;
    align-items: start;
}

.tbp-wrapper,
.tbp-container,
.tbp-detail-view-premium,
.tbp-detail-three-col-layout {
    overflow: visible !important;
}

/* Left Sidebar: TOC */
.tbp-detail-toc-sidebar {
    position: sticky !important;
    top: 140px !important;
    padding-top: 10px;
    align-self: start !important;
}

.tbp-toc-sticky {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: none;
}

.tbp-toc-sticky::-webkit-scrollbar {
    width: 4px;
}

.tbp-toc-sticky::-webkit-scrollbar-track {
    background: transparent;
}

.tbp-toc-sticky::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.tbp-toc-sticky::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tbp-toc-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tbp-text-muted);
}

.tbp-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Vertical Timeline Track */
.tbp-toc-list::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.tbp-toc-list li {
    position: relative;
    margin-bottom: 0;
}

.tbp-toc-link {
    color: var(--tbp-text-muted);
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 10px 10px 24px;
    display: block;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.tbp-toc-link:focus,
.tbp-toc-link:active,
.tbp-toc-link:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.tbp-toc-dot {
    position: absolute;
    left: 4px;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--tbp-bg-dark);
    transition: all 0.3s ease;
    box-shadow: none;
}

.tbp-toc-link:hover {
    color: #ffffff;
}

.tbp-toc-link:hover .tbp-toc-dot {
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}

.tbp-toc-link.active {
    color: #3b82f6;
    font-weight: 700;
}

.tbp-toc-link.active .tbp-toc-dot {
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
}

/* Center Column: Article Body */
.tbp-detail-main-article-body {
    flex-grow: 1;
    min-width: 0;
}

.tbp-detail-content-new {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.tbp-detail-content-new p {
    margin-bottom: 10px;
    margin-top: 0;
}

/* Article Subheadings with left blue line */


/* Elegant Quote Block */
.tbp-detail-content-new blockquote {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid #3b82f6;
    padding: 30px 40px;
    border-radius: 0 16px 16px 0;
    margin: 40px 0;
    position: relative;
}

.tbp-detail-content-new blockquote p {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
}

.tbp-detail-content-new blockquote::before {
    content: '“';
    position: absolute;
    left: 15px;
    top: 10px;
    font-size: 5rem;
    color: rgba(59, 130, 246, 0.15);
    font-family: serif;
    line-height: 1;
}

/* Helpful Feedback Block */
.tbp-feedback-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px 30px;
    margin-top: 60px;
    margin-bottom: 50px;
}

.tbp-feedback-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tbp-feedback-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tbp-feedback-icon {
    color: #3b82f6;
    flex-shrink: 0;
}

.tbp-feedback-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.tbp-feedback-text p {
    font-size: 0.88rem;
    color: var(--tbp-text-muted);
    margin: 0;
}

.tbp-feedback-actions {
    display: flex;
    gap: 12px;
}

.tbp-feedback-btn {
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.tbp-helpful-btn {
    background: #1e3a8a;
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tbp-helpful-btn:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.tbp-not-helpful-btn {
    background: transparent;
    color: var(--tbp-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tbp-not-helpful-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Author Box Bottom */
.tbp-author-box-bottom {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 35px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-top: 50px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tbp-author-box-bottom:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.tbp-author-box-bottom:hover .tbp-author-title-bottom {
    color: #60a5fa;
    transition: color 0.3s ease;
}

body.tbp-light-theme .tbp-author-box-bottom {
    background: rgba(15, 23, 42, 0.02);
    border-color: rgba(15, 23, 42, 0.05);
}

body.tbp-light-theme .tbp-author-box-bottom:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
}

body.tbp-light-theme .tbp-author-box-bottom:hover .tbp-author-title-bottom {
    color: #2563eb;
}

.tbp-author-box-avatar {
    flex-shrink: 0;
}

.tbp-author-box-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.tbp-author-box-content {
    flex-grow: 1;
}

.tbp-author-written-by {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tbp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
}

.tbp-author-title-bottom {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tbp-author-tag-bottom {
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 600;
}

.tbp-author-bio-bottom {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbp-author-links-bottom {
    display: flex;
    gap: 12px;
}

.tbp-author-links-bottom a {
    color: var(--tbp-text-muted);
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.tbp-author-links-bottom a:hover {
    color: #ffffff;
    transform: scale(1.15);
}

/* Right Sidebar: Widgets */
.tbp-detail-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky !important;
    top: 140px !important;
    align-self: start !important;
}

.tbp-sidebar-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
}

/* Widget Title Decoration */
.tbp-widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 25px 0;
    position: relative;
    padding-bottom: 12px;
}

.tbp-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #3b82f6;
    border-radius: 2px;
}

/* Sponsored Widget */
.tbp-sponsored-widget {
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.15);
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.06), transparent 60%), rgba(255, 255, 255, 0.02);
}

.tbp-sponsored-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.tbp-sponsored-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
}

.tbp-sponsored-images img {
    width: calc(50% - 5px);
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.tbp-sponsored-images img:hover {
    transform: scale(1.05);
}

.tbp-sponsored-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
}

.tbp-sponsored-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--tbp-text-muted);
    margin: 0 0 20px 0;
}

.tbp-sponsored-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.tbp-sponsored-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* Related Widget */
.tbp-related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tbp-related-post-item {
    display: flex;
    gap: 15px;
    text-decoration: none !important;
    align-items: center;
    transition: transform 0.25s ease;
}

.tbp-related-post-item:hover {
    transform: translateX(4px);
}

.tbp-related-thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tbp-related-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tbp-related-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

/* Aesthetic tag colors */
.tbp-related-tag.cat-design {
    background: rgba(236, 72, 153, 0.12);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.tbp-related-tag.cat-tech {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tbp-related-tag.cat-dev {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tbp-related-tag.cat-strategy {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.tbp-related-tag.cat-default {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.tbp-related-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.tbp-related-post-item:hover .tbp-related-title {
    color: #3b82f6;
}

.tbp-related-meta {
    font-size: 0.78rem;
    color: var(--tbp-text-muted);
}

/* Newsletter Widget */
.tbp-widget-title-newsletter {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.tbp-newsletter-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--tbp-text-muted);
    margin: 0 0 20px 0;
}

.tbp-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.tbp-newsletter-input {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    outline: none !important;
    transition: border-color 0.3s ease !important;
}

.tbp-newsletter-input:focus {
    border-color: #3b82f6 !important;
}

.tbp-newsletter-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.tbp-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.tbp-newsletter-footer {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    text-align: center;
}

/* Responsive Overrides for 3-Column Layout */
@media (max-width: 1200px) {
    .tbp-detail-three-col-layout {
        grid-template-columns: 200px 1fr;
        gap: 30px;
    }

    .tbp-detail-right-sidebar {
        grid-column: 1 / -1;
        margin-top: 20px;
        position: static !important;
    }
}

@media (max-width: 991px) {
    .tbp-detail-three-col-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tbp-detail-toc-sidebar {
        display: none;
    }

    .tbp-detail-title-new {
        font-size: 2rem;
    }

    .tbp-post-author-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .tbp-post-author-right {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Light Theme Variables & Overrides */
body.tbp-light-theme {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

body.tbp-light-theme .tbp-wrapper {
    background: #f8fafc !important;
}

body.tbp-light-theme .tbp-dot-grid {
    background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 0) !important;
}

body.tbp-light-theme .tbp-detail-title-new {
    background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.tbp-light-theme .tbp-detail-subtitle-new,
body.tbp-light-theme .tbp-meta-item,
body.tbp-light-theme .tbp-back-blog-link,
body.tbp-light-theme .tbp-author-role-top,
body.tbp-light-theme .tbp-toc-title,
body.tbp-light-theme .tbp-toc-link,
body.tbp-light-theme .tbp-sponsored-desc,
body.tbp-light-theme .tbp-newsletter-subtitle,
body.tbp-light-theme .tbp-author-bio-bottom,
body.tbp-light-theme .tbp-author-written-by {
    color: #64748b !important;
}

body.tbp-light-theme .tbp-back-blog-link:hover,
body.tbp-light-theme .tbp-toc-link:hover {
    color: #0f172a !important;
}

body.tbp-light-theme .tbp-author-name-top,
body.tbp-light-theme .tbp-section-heading,
body.tbp-light-theme .tbp-detail-content-new,
body.tbp-light-theme .tbp-detail-content-new p,
body.tbp-light-theme .tbp-detail-content-new h2,
body.tbp-light-theme .tbp-detail-content-new h3,
body.tbp-light-theme .tbp-feedback-text h4,
body.tbp-light-theme .tbp-author-title-bottom,
body.tbp-light-theme .tbp-widget-title,
body.tbp-light-theme .tbp-sponsored-title,
body.tbp-light-theme .tbp-related-title,
body.tbp-light-theme .tbp-widget-title-newsletter {
    color: #0f172a !important;
}

body.tbp-light-theme .tbp-action-btn,
body.tbp-light-theme .tbp-author-social-btn {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #475569;
}

body.tbp-light-theme .tbp-action-btn:hover,
body.tbp-light-theme .tbp-author-social-btn:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.2);
    color: #0f172a;
}

body.tbp-light-theme .tbp-post-author-row {
    border-color: rgba(15, 23, 42, 0.08);
}

body.tbp-light-theme .tbp-toc-list::before {
    background: rgba(15, 23, 42, 0.06);
}

body.tbp-light-theme .tbp-toc-dot {
    background: rgba(15, 23, 42, 0.15);
    border-color: #f8fafc;
}

body.tbp-light-theme .tbp-detail-content-new blockquote {
    background: rgba(59, 130, 246, 0.03);
}

body.tbp-light-theme .tbp-detail-content-new blockquote p {
    color: #1e3a8a !important;
}

body.tbp-light-theme .tbp-feedback-block,
body.tbp-light-theme .tbp-author-box-bottom,
body.tbp-light-theme .tbp-sidebar-widget {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.tbp-light-theme .tbp-newsletter-input {
    background: #f1f5f9 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
}

body.tbp-light-theme .tbp-newsletter-input:focus {
    border-color: #3b82f6 !important;
}

body.tbp-light-theme .tbp-newsletter-footer {
    color: rgba(15, 23, 42, 0.5);
}

body.tbp-light-theme .tbp-toc-link.active {
    color: #3b82f6 !important;
}

/* Author Links Hover States */
.tbp-author-link-wrapper,
.tbp-author-link-name,
.tbp-author-title-link {
    text-decoration: none !important;
    color: inherit !important;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.tbp-author-link-wrapper:hover {
    opacity: 0.85;
}

.tbp-author-link-name:hover,
.tbp-author-title-link:hover {
    color: #60a5fa !important;
}

body.tbp-light-theme .tbp-author-link-name:hover,
body.tbp-light-theme .tbp-author-title-link:hover {
    color: #2563eb !important;
}

/* --- COMPREHENSIVE RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .tbp-detail-title-new {
        font-size: 2.5rem;
    }

    .tbp-profile-hero {
        padding: 40px 20px;
    }

    .tbp-profile-name {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .tbp-post-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .tbp-title {
        font-size: 2.2rem;
    }

    .tbp-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .tbp-detail-title-new {
        font-size: 2rem;
    }

    .tbp-detail-subtitle-new {
        font-size: 1rem;
        padding: 0 10px;
        margin: 0 0 0px 0;
    }

    .tbp-section-block {
        margin-bottom: 20px;
    }

    .tbp-detail-featured-image-new {
        margin-bottom: 30px;
    }

    .tbp-detail-featured-image-new img {
        height: auto;
        max-height: 350px;
    }

    .tbp-post-meta-badges {
        margin-bottom: 15px;
    }

    .tbp-author-box-bottom {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        border-radius: 20px;
        gap: 0;
        margin-top: 30px;

    }

    .tbp-author-box-avatar {
        margin: 0 auto 10px auto;
    }

    .tbp-author-title-bottom {
        justify-content: center;
    }

    .tbp-author-links-bottom {
        justify-content: center;
    }

    .tbp-profile-hero {
        padding: 20px;
        margin-top: 25px;
        border-radius: 18px;
    }

    .tbp-profile-header {
        margin-bottom: 40px;
    }

    .tbp-profile-avatar img {
        width: 100px;
        height: 100px;
    }

    .tbp-detail-top-nav-new {
        margin-bottom: 10px;
    }

    .tbp-section-content {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .tbp-post-grid {
        grid-template-columns: 1fr;
    }

    .tbp-card-image {
        height: 200px;
    }

    .tbp-detail-title-new {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

    .tbp-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .tbp-detail-meta .tbp-meta-dot {
        display: none;
    }

    .tbp-profile-name {
        font-size: 1.75rem;
    }

    .tbp-profile-bio {
        font-size: 0.95rem;
    }

    .tbp-profile-hero {
        padding: 0;
    }

    .tbp-profile-avatar {
        margin-bottom: 10px;
    }
}


/* Global fix for horizontal scroll on mobile */
html,
body {
    overflow-x: clip !important;
    max-width: 100vw;
}

.tbp-wrapper,
.tbp-detail-view {
    overflow-x: clip !important;
    max-width: 100%;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .tbp-detail-right-sidebar {
        display: flex;
        flex-direction: column;
    }

    .tbp-related-widget {
        order: -1;
    }

    .tbp-sponsored-widget {
        order: 1;
    }
}