/* ================================================================
   Blog — Archive & Single
   ================================================================ */

/* ── Archive header ── */
.tdb-archive-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 48px 0 40px;
    margin-bottom: 40px;
}
.tdb-archive-header-inner {
    text-align: center;
}
.tdb-archive-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.tdb-archive-desc {
    color: rgba(255,255,255,.85);
    margin: 0;
    font-size: .97rem;
}

/* ── Archive layout ── */
.tdb-archive-body {
    padding-top: 40px;
    padding-bottom: 56px;
}
.tdb-archive-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

/* ── Card grid ── */
.tdb-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ── Single card ── */
.tdb-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.tdb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.tdb-card-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
}
.tdb-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    display: block;
}
.tdb-card:hover .tdb-card-thumb img {
    transform: scale(1.05);
}
.tdb-card-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2563eb;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .3px;
    z-index: 1;
}

.tdb-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tdb-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.tdb-card-date,
.tdb-card-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    color: #9ca3af;
}
.tdb-card-date svg,
.tdb-card-author svg {
    flex-shrink: 0;
    opacity: .7;
}

.tdb-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 10px;
    color: #111827;
}
.tdb-card-title a {
    color: inherit;
    text-decoration: none;
}
.tdb-card-title a:hover {
    color: #2563eb;
}

.tdb-card-excerpt {
    font-size: .88rem;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 14px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.tdb-card-excerpt p {
    margin: 0;
}

/* Tags (salary, location, deadline) */
.tdb-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.tdb-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 500;
}
.tdb-tag svg { flex-shrink: 0; }
.tdb-tag--salary   { background: #fef3c7; color: #92400e; }
.tdb-tag--location { background: #d1fae5; color: #065f46; }
.tdb-tag--deadline { background: #fee2e2; color: #991b1b; }

.tdb-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    margin-top: auto;
}
.tdb-read-more:hover {
    color: #1d4ed8;
    gap: 8px;
}
.tdb-read-more svg { transition: transform .15s; }
.tdb-read-more:hover svg { transform: translateX(3px); }

/* ── Pagination ── */
.tdb-pagination {
    margin-top: 36px;
}
.tdb-pagination .pagination,
.tdb-pagination .page-numbers {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}
.tdb-pagination .page-numbers a,
.tdb-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: .88rem;
    color: #374151;
    text-decoration: none;
    background: #fff;
    transition: background .15s, color .15s, border-color .15s;
}
.tdb-pagination .page-numbers a:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}
.tdb-pagination .page-numbers .current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-weight: 600;
}

/* ── No posts ── */
.tdb-no-posts {
    text-align: center;
    padding: 64px 0;
    color: #9ca3af;
}
.tdb-no-posts svg { display: block; margin: 0 auto 12px; }
.tdb-no-posts p { margin: 0; font-size: .95rem; }

/* ── Sidebar ── */
.tdb-sidebar {
    position: sticky;
    top: 24px;
}
.tdb-sidebar .widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.tdb-sidebar .widget-title {
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #374151;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

/* Sidebar blocks (custom) */
.tdb-sb-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
}
.tdb-sb-title {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #6b7280;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

/* Search */
.tdb-sb-search {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 3px 3px 3px 14px;
    height: 38px;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.tdb-sb-search:focus-within {
    background: #fff;
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.tdb-sb-search-input {
    flex: 1;
    border: none !important;
    height: 30px !important;
    line-height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: .85rem;
    outline: none !important;
    color: #374151;
    background: transparent !important;
    box-shadow: none !important;
    min-width: 0;
    min-height: 0 !important;
}
.tdb-sb-search-input::placeholder { color: #9ca3af; }
.tdb-sb-search-btn {
    background: #F97316;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    line-height: 1 !important;
    transition: background .15s, transform .1s;
}
.tdb-sb-search-btn:hover { background: #EA580C; transform: scale(1.05); }
.tdb-sb-search-btn svg { margin: 0 !important; width: 14px !important; height: 14px !important; }

/* Categories */
.tdb-sb-cats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tdb-sb-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 7px;
    text-decoration: none;
    color: #374151;
    font-size: .88rem;
    transition: background .15s, color .15s;
}
.tdb-sb-cat-link:hover {
    background: #eff6ff;
    color: #2563eb;
}
.tdb-sb-cat-link--active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}
.tdb-sb-cat-count {
    background: #f3f4f6;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
}
.tdb-sb-cat-link:hover .tdb-sb-cat-count,
.tdb-sb-cat-link--active .tdb-sb-cat-count {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Recent posts */
.tdb-sb-recent {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tdb-sb-recent-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}
.tdb-sb-recent-img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    display: block;
}
.tdb-sb-recent-img--empty {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tdb-sb-recent-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.tdb-sb-recent-title {
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.tdb-sb-recent-item:hover .tdb-sb-recent-title { color: #2563eb; }
.tdb-sb-recent-date {
    font-size: .75rem;
    color: #9ca3af;
}


/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
    .tdb-archive-layout {
        grid-template-columns: 1fr 240px;
        gap: 24px;
    }
}

@media (max-width: 840px) {
    .tdb-archive-layout {
        grid-template-columns: 1fr;
    }
    .tdb-sidebar {
        position: static;
    }
    .tdb-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .tdb-archive-title { font-size: 1.5rem; }
    .tdb-archive-header { padding: 32px 0 28px; }
    .tdb-card-grid { gap: 16px; }
}


/* ================================================================
   Single Post — New Design (tds-*)
   ================================================================ */

/* Reading progress bar */
.tds-progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    z-index: 9999;
    transition: width .1s linear;
    border-radius: 0 2px 2px 0;
}

/* ── Hero ── */
.tds-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.tds-hero--no-img {
    min-height: 320px;
    align-items: center;
    padding: 60px 0;
}
.tds-hero-img {
    position: absolute;
    inset: 0;
}
.tds-hero-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.tds-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,10,20,.88) 0%, rgba(5,10,20,.5) 50%, rgba(5,10,20,.15) 100%);
}
.tds-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: 48px;
}
.tds-hero--no-img .tds-hero-content { padding-bottom: 0; }

/* Breadcrumb */
.tds-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.tds-breadcrumb a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
}
.tds-breadcrumb a:hover { color: #fff; }
.tds-breadcrumb span { color: rgba(255,255,255,.5); }
.tds-breadcrumb svg { opacity: .5; flex-shrink: 0; }

/* Category badge */
.tds-cat-badge {
    display: inline-flex;
    align-items: center;
    background: #2563eb;
    color: #fff;
    font-size: .73rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-decoration: none;
    letter-spacing: .3px;
    transition: background .15s;
}
.tds-cat-badge:hover { background: #1d4ed8; color: #fff; }

/* Title */
.tds-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 20px;
    letter-spacing: -.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
    max-width: 780px;
}

/* Meta bar */
.tds-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255,255,255,.75);
    font-size: .83rem;
}
.tds-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.tds-meta-avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,255,255,.4);
}
.tds-meta-sep { opacity: .4; }
.tds-meta-item--deadline {
    background: rgba(239,68,68,.3);
    border: 1px solid rgba(239,68,68,.5);
    padding: 3px 10px;
    border-radius: 20px;
    color: #fca5a5;
}

/* ── Layout ── */
.tds-body {
    background: #f1f5f9;
    padding: 40px 0 64px;
}
.tds-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

/* ── Article ── */
.tds-article {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* Deadline alert */
.tds-deadline-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-bottom: 1px solid #fcd34d;
    padding: 14px 32px;
    color: #78350f;
    font-size: .9rem;
}
.tds-deadline-alert strong { color: #92400e; }
.tds-deadline-alert-icon {
    width: 34px; height: 34px;
    background: #f59e0b;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* Content */
.tds-content {
    padding: 36px 40px;
    font-size: .97rem;
    line-height: 1.85;
    color: #374151;
}
.tds-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin: 2em 0 .7em;
    padding-bottom: .4em;
    border-bottom: 2px solid #f3f4f6;
}
.tds-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin: 1.6em 0 .6em;
}
.tds-content p { margin-bottom: 1.2em; }
.tds-content ul, .tds-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.tds-content li { margin-bottom: .5em; }
.tds-content blockquote {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    margin: 1.5em 0;
    padding: 14px 20px;
    border-radius: 0 8px 8px 0;
    color: #1e40af;
    font-style: italic;
}
.tds-content img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.tds-content a { color: #2563eb; }
.tds-content a:hover { text-decoration: underline; }
.tds-content table {
    width: 100%; border-collapse: collapse; margin-bottom: 1.2em; font-size: .9rem;
}
.tds-content th { background: #f3f4f6; padding: 8px 12px; text-align: left; font-weight: 600; }
.tds-content td { padding: 8px 12px; border-top: 1px solid #e5e7eb; }

/* Tags */
.tds-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 40px 24px;
    border-bottom: 1px solid #f3f4f6;
}
.tds-tag {
    background: #f3f4f6;
    color: #4b5563;
    font-size: .78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.tds-tag:hover { background: #dbeafe; color: #1d4ed8; }

/* Author box */
.tds-author-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 40px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}
.tds-author-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}
.tds-author-info { flex: 1; }
.tds-author-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #9ca3af;
    display: block;
    margin-bottom: 3px;
}
.tds-author-name { font-size: .95rem; color: #111827; display: block; }
.tds-author-bio {
    font-size: .83rem;
    color: #6b7280;
    margin: 5px 0 0;
    line-height: 1.6;
}


/* Share buttons */
.tds-share-btns { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 0; }
.tds-share-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}
.tds-share-btn:hover { opacity: .88; transform: translateX(2px); }
.tds-share-btn--fb { background: #1877f2; color: #fff; }
.tds-share-btn--copy { background: #f3f4f6; color: #374151; }
.tds-share-btn--copy:hover { background: #e5e7eb; }

/* ── Sidebar ── */
.tds-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }

.tds-sb-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.tds-sb-card-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #6b7280;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}
.tds-sb-card-title svg { color: #2563eb; }

/* Info list */
.tds-info-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.tds-info-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .83rem;
    gap: 8px;
}
.tds-info-label { color: #9ca3af; flex-shrink: 0; }
.tds-info-value { color: #111827; font-weight: 600; text-align: right; }
.tds-info-value--link { color: #2563eb; text-decoration: none; }
.tds-info-value--link:hover { text-decoration: underline; }
.tds-info-deadline .tds-info-value { color: #dc2626; }

/* Related list in sidebar */
.tds-related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tds-related-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}
.tds-related-item:hover .tds-related-item-title { color: #2563eb; }
.tds-related-item-thumb {
    width: 60px; height: 44px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.tds-related-item-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.tds-related-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tds-related-item-title {
    font-size: .83rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .15s;
}
.tds-related-item-date { font-size: .73rem; color: #9ca3af; }

/* ── Related bottom grid ── */
.tds-related-section {
    background: #fff;
    padding: 52px 0 64px;
    border-top: 1px solid #e5e7eb;
}
.tds-related-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.tds-related-heading span {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    position: relative;
    padding-left: 16px;
}
.tds-related-heading span::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 1.1em;
    background: linear-gradient(to bottom, #2563eb, #06b6d4);
    border-radius: 2px;
}
.tds-related-all {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .83rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.tds-related-all svg { transition: transform .15s; }
.tds-related-all:hover svg { transform: translateX(3px); }

.tds-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tds-rel-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.tds-rel-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }

.tds-rel-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}
.tds-rel-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .35s;
}
.tds-rel-card:hover .tds-rel-card-thumb img { transform: scale(1.06); }
.tds-rel-card-noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.tds-rel-card-cat {
    position: absolute;
    top: 10px; left: 10px;
    background: #2563eb;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.tds-rel-card-body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tds-rel-card-meta { font-size: .75rem; color: #9ca3af; }
.tds-rel-card-title {
    font-size: .97rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.tds-rel-card:hover .tds-rel-card-title { color: #2563eb; }
.tds-rel-card-excerpt {
    font-size: .83rem;
    color: #6b7280;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}
.tds-rel-card-more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .8rem;
    font-weight: 600;
    color: #2563eb;
    margin-top: auto;
}
.tds-rel-card-more svg { transition: transform .15s; }
.tds-rel-card:hover .tds-rel-card-more svg { transform: translateX(3px); }


/* ── Responsive ── */
@media (max-width: 1024px) {
    .tds-layout { grid-template-columns: 1fr 260px; }
}
@media (max-width: 820px) {
    .tds-layout { grid-template-columns: 1fr; }
    .tds-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .tds-sb-card { flex: 1 1 240px; }
    .tds-title { font-size: 1.7rem; }
    .tds-content { padding: 24px 20px; }
    .tds-tags, .tds-author-box { padding-left: 20px; padding-right: 20px; }
    .tds-deadline-alert { padding: 12px 20px; }
    .tds-related-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 540px) {
    .tds-hero { min-height: 360px; }
    .tds-title { font-size: 1.4rem; }
    .tds-meta { font-size: .78rem; gap: 6px; }
    .tds-related-grid { grid-template-columns: 1fr; }
    .tds-sidebar { flex-direction: column; }
    .tds-content { padding: 18px 16px; }
}


/* ================================================================
   Search Results Page
   ================================================================ */

/* SVG reset for search page (override Flatsome's svg { margin-right:10px; max-width:50px }) */
.tds-search-wrap svg,
.tds-search-empty svg {
    margin: 0 !important;
    max-width: none !important;
}

.tds-search-wrap { margin-bottom: 0; }
.tds-search-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%) !important;
    padding: 56px 0 48px !important;
    margin-bottom: 0 !important;
}
.tds-search-header .tdb-archive-title { font-size: 2rem; }
.tds-search-header .tdb-archive-desc {
    max-width: 600px; margin: 0 auto 20px;
    font-size: .95rem;
    color: rgba(255,255,255,.85);
}
.tds-search-header .tdb-archive-desc strong { color: #fff; font-weight: 700; }
.tds-search-header .tdb-archive-desc em {
    font-style: normal;
    background: linear-gradient(90deg, #f7c948, #f39c12);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; font-weight: 700;
}

/* Search refine form */
.tds-search-form {
    display: flex !important; align-items: center !important;
    max-width: 580px; margin: 0 auto !important;
    background: #fff !important; border-radius: 9999px !important;
    padding: 5px 5px 5px 18px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.22) !important;
    box-sizing: border-box;
}
.tds-search-form-icon {
    color: #9ca3af !important; flex-shrink: 0;
    width: 18px !important; height: 18px !important;
    margin-right: 10px !important;
}
.tds-search-form-input {
    flex: 1 !important; min-width: 0 !important; width: auto !important;
    border: none !important; outline: none !important; box-shadow: none !important;
    background: transparent !important; color: #374151 !important;
    font-size: .95rem !important;
    padding: 0 8px 0 0 !important; margin: 0 !important;
    height: 38px !important; line-height: 38px !important;
    min-height: 0 !important; max-height: none !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important; appearance: none !important;
}
.tds-search-form-input::placeholder { color: #9ca3af !important; }
.tds-search-form-btn {
    flex-shrink: 0 !important; display: inline-flex !important;
    align-items: center !important; justify-content: center !important;
    background: #F97316 !important; color: #fff !important;
    border: none !important; border-radius: 9999px !important;
    padding: 0 22px !important; height: 38px !important;
    width: auto !important; max-width: none !important;
    font-size: .9rem !important; font-weight: 700 !important;
    cursor: pointer !important; white-space: nowrap !important;
    margin: 0 !important; min-height: 0 !important;
    line-height: 1 !important;
    text-transform: none !important; letter-spacing: 0 !important;
    transition: background .15s;
}
.tds-search-form-btn:hover { background: #EA580C !important; color: #fff !important; }

/* Empty state */
.tds-search-empty {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 56px 32px;
    text-align: center;
    color: #6b7280;
}
.tds-search-empty > svg {
    display: block !important; margin: 0 auto 18px !important;
    opacity: .8; width: 64px !important; height: 64px !important;
}
.tds-search-empty h3 {
    font-size: 1.2rem; font-weight: 700; color: #374151;
    margin: 0 0 8px;
}
.tds-search-empty p { margin: 0 0 22px; font-size: .92rem; }
.tds-search-suggest {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: center; gap: 8px;
    font-size: .85rem;
}
.tds-search-suggest > span { color: #9ca3af; }
.tds-search-suggest a {
    display: inline-flex; align-items: center;
    background: #fff7ed; color: #EA580C;
    border: 1px solid #fed7aa;
    border-radius: 20px; padding: 5px 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.tds-search-suggest a:hover {
    background: #F97316; color: #fff;
    border-color: #F97316;
}

@media (max-width: 540px) {
    .tds-search-header { padding: 36px 0 32px !important; }
    .tds-search-header .tdb-archive-title { font-size: 1.5rem; }
    .tds-search-form { max-width: 100%; padding: 4px 4px 4px 14px !important; }
    .tds-search-form-btn { padding: 0 16px !important; font-size: .82rem !important; }
    .tds-search-empty { padding: 40px 20px; }
}
