/**
 * TheDigitalHunts Editorial Publication Design System
 * Inspired by Search Engine Journal, Medium, and YatraDham
 * Designed to look authentic, credible, and 100% human-crafted.
 */

:root {
    --tdh-font-headline: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tdh-font-ui: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Editorial Color Palette */
    --tdh-ink-black: #0f172a;
    --tdh-ink-dark: #1e293b;
    --tdh-ink-body: #334155;
    --tdh-ink-muted: #64748b;
    --tdh-ink-light: #94a3b8;
    
    --tdh-surface-white: #ffffff;
    --tdh-surface-warm: #fafafa;
    --tdh-surface-subtle: #f8fafc;
    
    --tdh-border-light: #f1f5f9;
    --tdh-border-medium: #e2e8f0;
    --tdh-border-dark: #cbd5e1;
    
    --tdh-accent-blue: #1d4ed8;
    --tdh-accent-amber: #b45309;
    --tdh-accent-dark: #0f172a;
    
    --tdh-max-width: 1240px;
    --tdh-radius-sm: 4px;
    --tdh-radius-md: 8px;
    --tdh-radius-lg: 12px;
    --tdh-radius-full: 9999px;
}

/* Reset & Document Baseline */
body.tdh-editorial-body {
    font-family: var(--tdh-font-ui);
    color: var(--tdh-ink-body);
    background-color: var(--tdh-surface-warm);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

.tdh-site-wrapper {
    overflow-x: hidden;
}

.tdh-container {
    max-width: var(--tdh-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   1. TOP UTILITY BAR (SEJ / Publication Style)
   ========================================= */
.tdh-top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--tdh-border-medium);
    font-size: 12.5px;
    color: var(--tdh-ink-muted);
    padding: 8px 0;
}

.tdh-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tdh-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.tdh-current-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.tdh-top-edition {
    background: #f1f5f9;
    color: var(--tdh-ink-dark);
    padding: 2px 8px;
    border-radius: var(--tdh-radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tdh-top-center {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tdh-top-ticker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tdh-ticker-tag {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.tdh-ticker-text {
    color: var(--tdh-ink-dark);
    font-weight: 600;
}

.tdh-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.tdh-top-link {
    color: var(--tdh-ink-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.tdh-top-link:hover {
    color: var(--tdh-ink-black);
}

.tdh-top-highlight {
    color: var(--tdh-accent-blue);
}

.tdh-top-sep {
    color: var(--tdh-border-dark);
}

/* =========================================
   2. MAIN BRAND HEADER
   ========================================= */
.tdh-header-main {
    background: #ffffff;
    border-bottom: 1px solid var(--tdh-border-medium);
    padding: 24px 0;
}

.tdh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tdh-brand-block {
    display: flex;
    flex-direction: column;
}

.tdh-logo-link {
    text-decoration: none;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.tdh-header-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tdh-logo-link:hover .tdh-header-logo-img {
    transform: scale(1.05);
}

.tdh-brand-text {
    display: flex;
    flex-direction: column;
}

.tdh-logo-title {
    font-family: var(--tdh-font-headline);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--tdh-ink-black);
    line-height: 1.15;
}

.tdh-logo-tagline {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--tdh-ink-muted);
    margin-top: 3px;
}

.tdh-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tdh-search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--tdh-border-medium);
    padding: 8px 16px;
    border-radius: var(--tdh-radius-full);
    color: var(--tdh-ink-muted);
    font-family: var(--tdh-font-ui);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tdh-search-toggle:hover {
    border-color: var(--tdh-ink-dark);
    color: var(--tdh-ink-black);
    background: #f8fafc;
}

.tdh-subscribe-btn {
    display: inline-flex;
    align-items: center;
    background: var(--tdh-ink-black);
    color: #ffffff;
    padding: 9px 20px;
    border-radius: var(--tdh-radius-full);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.tdh-subscribe-btn:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
}

.tdh-mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.tdh-mobile-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--tdh-ink-black);
    transition: 0.2s;
}

/* =========================================
   3. PRIMARY NAVIGATION BAR (High Contrast)
   ========================================= */
.tdh-primary-navbar {
    background: #ffffff;
    border-bottom: 2px solid var(--tdh-ink-black);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tdh-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tdh-nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.tdh-nav-list::-webkit-scrollbar {
    display: none;
}

.tdh-nav-item a {
    display: block;
    padding: 14px 0;
    color: var(--tdh-ink-dark);
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.tdh-nav-item a:hover,
.tdh-nav-item.current-menu-item a {
    color: var(--tdh-accent-blue);
}

.tdh-nav-item.current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tdh-accent-blue);
}

.tdh-nav-side {
    display: flex;
    align-items: center;
}

.tdh-nav-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 8px;
    border-radius: 4px;
}

/* =========================================
   4. LEADERBOARD AD PLACEHOLDER (SEJ Style)
   ========================================= */
.tdh-header-ad-section {
    padding: 24px 0 10px;
}

.tdh-ad-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tdh-ad-meta {
    margin-bottom: 5px;
}

.tdh-ad-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--tdh-ink-light);
}

.tdh-ad-box {
    background: var(--tdh-surface-subtle);
    border: 1px dashed var(--tdh-border-dark);
    border-radius: var(--tdh-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.tdh-ad-box:hover {
    border-color: #94a3b8;
}

.tdh-ad-leaderboard {
    width: 728px;
    max-width: 100%;
    height: 90px;
}

.tdh-ad-sidebar-slot {
    width: 100%;
    min-height: 250px;
    padding: 24px 16px;
}

.tdh-ad-infeed-slot {
    width: 100%;
    min-height: 120px;
    padding: 20px 16px;
}

.tdh-ad-placeholder-inner {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tdh-ad-slot-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--tdh-ink-muted);
}

.tdh-ad-slot-dim {
    font-size: 11px;
    color: var(--tdh-ink-light);
}

/* =========================================
   5. FEATURED SHOWCASE (SEJ / Medium Hybrid)
   ========================================= */
.tdh-showcase-section {
    padding: 20px 0 32px;
}

.tdh-showcase-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 32px;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--tdh-border-medium);
    border-radius: var(--tdh-radius-md);
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Lead Story (Left) */
.tdh-lead-story {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tdh-lead-media {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--tdh-radius-sm);
    overflow: hidden;
    background: #e2e8f0;
    margin-bottom: 20px;
}

.tdh-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tdh-lead-story:hover .tdh-lead-media img {
    transform: scale(1.03);
}

.tdh-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    padding: 3px 8px;
}

.tdh-lead-category-wrap {
    margin-bottom: 12px;
}

.tdh-tag-primary {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    border-radius: var(--tdh-radius-sm);
    transition: background 0.15s ease;
}

.tdh-tag-primary:hover {
    background: var(--tdh-accent-blue);
}

.tdh-tag-subtle {
    background: #f1f5f9;
    color: var(--tdh-ink-dark);
}

.tdh-tag-subtle:hover {
    background: #e2e8f0;
}

.tdh-story-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--tdh-ink-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tdh-author-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tdh-avatar-circle {
    border-radius: 50%;
}

.tdh-author-by {
    font-weight: 700;
    color: var(--tdh-ink-dark);
}

.tdh-meta-dot {
    color: var(--tdh-border-dark);
}

.tdh-lead-title {
    font-family: var(--tdh-font-headline);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 14px;
    color: var(--tdh-ink-black);
}

.tdh-lead-title a {
    color: var(--tdh-ink-black);
    text-decoration: none;
    transition: color 0.15s ease;
}

.tdh-lead-title a:hover {
    color: var(--tdh-accent-blue);
}

.tdh-lead-excerpt {
    font-size: 15px;
    color: var(--tdh-ink-body);
    line-height: 1.6;
    margin: 0 0 20px;
}

.tdh-lead-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tdh-accent-blue);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.tdh-lead-read-btn:hover {
    gap: 10px;
    color: #1e40af;
}

/* Right Top Stories Rail */
.tdh-top-stories-rail {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--tdh-border-medium);
    padding-left: 28px;
}

.tdh-rail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--tdh-ink-black);
    padding-bottom: 8px;
}

.tdh-rail-badge {
    width: 4px;
    height: 16px;
    background: var(--tdh-accent-blue);
}

.tdh-rail-title {
    font-family: var(--tdh-font-ui);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--tdh-ink-black);
    margin: 0;
}

.tdh-rail-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tdh-rail-item {
    display: flex;
    gap: 14px;
    border-bottom: 1px solid var(--tdh-border-light);
    padding-bottom: 18px;
}

.tdh-rail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tdh-rail-thumb {
    width: 95px;
    height: 70px;
    flex-shrink: 0;
    border-radius: var(--tdh-radius-sm);
    overflow: hidden;
    background: #e2e8f0;
}

.tdh-rail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tdh-rail-item:hover .tdh-rail-thumb img {
    transform: scale(1.06);
}

.tdh-rail-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tdh-rail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--tdh-ink-muted);
    margin-bottom: 5px;
}

.tdh-rail-item-title {
    font-family: var(--tdh-font-headline);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
}

.tdh-rail-item-title a {
    color: var(--tdh-ink-black);
    text-decoration: none;
    transition: color 0.15s ease;
}

.tdh-rail-item-title a:hover {
    color: var(--tdh-accent-blue);
}

.tdh-rail-read-time {
    font-size: 11.5px;
    color: var(--tdh-ink-light);
}

/* =========================================
   6. MEDIUM-STYLE TOPICS SUB-NAV
   ========================================= */
.tdh-topics-subnav {
    border-top: 1px solid var(--tdh-border-medium);
    border-bottom: 1px solid var(--tdh-border-medium);
    background: #ffffff;
    margin-bottom: 36px;
}

.tdh-subnav-scroll {
    display: flex;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
}

.tdh-subnav-scroll::-webkit-scrollbar {
    display: none;
}

.tdh-subnav-link {
    display: block;
    padding: 14px 0;
    color: var(--tdh-ink-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.15s ease;
}

.tdh-subnav-link:hover {
    color: var(--tdh-ink-black);
}

.tdh-subnav-active {
    color: var(--tdh-ink-black);
    font-weight: 800;
}

.tdh-subnav-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--tdh-ink-black);
}

/* =========================================
   7. MAIN GRID: FEED STREAM & SIDEBAR
   ========================================= */
.tdh-main-grid {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 60px;
}

.tdh-stream-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--tdh-border-medium);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.tdh-stream-title {
    font-family: var(--tdh-font-ui);
    font-size: 18px;
    font-weight: 800;
    color: var(--tdh-ink-black);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
}

.tdh-stream-count {
    font-size: 12.5px;
    color: var(--tdh-ink-light);
}

/* Medium-Style Card */
.tdh-articles-list {
    display: flex;
    flex-direction: column;
}

.tdh-medium-card {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 28px;
    padding: 26px 0;
    border-bottom: 1px solid var(--tdh-border-light);
    align-items: center;
}

.tdh-card-content {
    display: flex;
    flex-direction: column;
}

.tdh-card-author-line {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--tdh-ink-muted);
    margin-bottom: 8px;
}

.tdh-card-avatar {
    border-radius: 50%;
}

.tdh-card-author {
    font-weight: 700;
    color: var(--tdh-ink-dark);
}

.tdh-medium-title {
    font-family: var(--tdh-font-headline);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 8px;
}

.tdh-medium-title a {
    color: var(--tdh-ink-black);
    text-decoration: none;
    transition: color 0.15s ease;
}

.tdh-medium-title a:hover {
    color: var(--tdh-accent-blue);
}

.tdh-medium-snippet {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--tdh-ink-body);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tdh-card-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tdh-card-pills {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tdh-topic-pill {
    background: #f1f5f9;
    color: var(--tdh-ink-muted);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--tdh-radius-full);
    text-decoration: none;
    transition: all 0.15s ease;
}

.tdh-topic-pill:hover {
    background: #e2e8f0;
    color: var(--tdh-ink-black);
}

.tdh-reading-length {
    font-size: 12px;
    color: var(--tdh-ink-light);
}

.tdh-read-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--tdh-accent-blue);
    text-decoration: none;
}

.tdh-read-link:hover {
    text-decoration: underline;
}

.tdh-card-thumbnail {
    width: 180px;
    height: 125px;
    border-radius: var(--tdh-radius-sm);
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

.tdh-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tdh-medium-card:hover .tdh-card-thumbnail img {
    transform: scale(1.04);
}

/* =========================================
   8. REALISTIC IN-FEED DISPLAY AD SLOT
   ========================================= */
.tdh-ad-infeed-wrapper {
    width: 100%;
    margin: 28px 0;
}

.tdh-ad-infeed-slot {
    width: 100%;
    min-height: 90px;
    background: var(--tdh-surface-subtle);
    border: 1px dashed var(--tdh-border-dark);
    border-radius: var(--tdh-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 16px;
    transition: border-color 0.2s;
}

.tdh-ad-infeed-slot:hover {
    border-color: #94a3b8;
}

/* =========================================
   9. EDITORIAL SIDEBAR (Right Rail)
   ========================================= */
.tdh-editorial-sidebar {
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: sticky;
    top: 60px;
}

.tdh-sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--tdh-border-medium);
    border-radius: var(--tdh-radius-md);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.tdh-sidebar-heading {
    font-family: var(--tdh-font-ui);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--tdh-ink-black);
    margin: 0 0 18px;
    border-bottom: 2px solid var(--tdh-ink-black);
    padding-bottom: 8px;
}

/* Ranked Stories (01 - 05) */
.tdh-ranked-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tdh-ranked-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-bottom: 1px solid var(--tdh-border-light);
    padding-bottom: 14px;
}

.tdh-ranked-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tdh-rank-number {
    font-family: var(--tdh-font-ui);
    font-size: 26px;
    font-weight: 900;
    color: #cbd5e1;
    line-height: 1;
    min-width: 32px;
}

.tdh-ranked-item:nth-child(1) .tdh-rank-number { color: var(--tdh-ink-black); }
.tdh-ranked-item:nth-child(2) .tdh-rank-number { color: var(--tdh-accent-blue); }
.tdh-ranked-item:nth-child(3) .tdh-rank-number { color: #0284c7; }

.tdh-ranked-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--tdh-ink-dark);
    margin-bottom: 4px;
}

.tdh-avatar-micro {
    border-radius: 50%;
}

.tdh-ranked-title {
    font-family: var(--tdh-font-headline);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
}

.tdh-ranked-title a {
    color: var(--tdh-ink-black);
    text-decoration: none;
    transition: color 0.15s ease;
}

.tdh-ranked-title a:hover {
    color: var(--tdh-accent-blue);
}

.tdh-ranked-sub {
    font-size: 11.5px;
    color: var(--tdh-ink-light);
}

/* Sidebar Ad Placeholder (300x250) */
.tdh-sidebar-ad-widget {
    padding: 16px;
    display: flex;
    justify-content: center;
}

.tdh-ad-sidebar-slot {
    width: 300px;
    height: 250px;
}

/* Curated Newsletter Widget */
.tdh-widget-dispatch {
    background: #0f172a;
    color: #ffffff;
    border: none;
}

.tdh-dispatch-icon {
    color: #38bdf8;
    margin-bottom: 12px;
}

.tdh-dispatch-title {
    font-family: var(--tdh-font-headline);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
}

.tdh-dispatch-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0 0 18px;
}

.tdh-dispatch-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.tdh-dispatch-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--tdh-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 13.5px;
    font-family: var(--tdh-font-ui);
    box-sizing: border-box;
    outline: none;
}

.tdh-dispatch-input:focus {
    border-color: #38bdf8;
    background: rgba(255, 255, 255, 0.15);
}

.tdh-dispatch-btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #ffffff;
    font-family: var(--tdh-font-ui);
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    border-radius: var(--tdh-radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tdh-dispatch-btn:hover {
    background: #1d4ed8;
}

.tdh-dispatch-guarantee {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    text-align: center;
}

/* Topics Pill Cloud (YatraDham Style) */
.tdh-topics-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tdh-topic-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid var(--tdh-border-medium);
    padding: 6px 12px;
    border-radius: var(--tdh-radius-full);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tdh-ink-dark);
    text-decoration: none;
    transition: all 0.15s ease;
}

.tdh-topic-tag:hover {
    background: var(--tdh-ink-black);
    color: #ffffff;
    border-color: var(--tdh-ink-black);
}

.tdh-tag-count {
    font-size: 10.5px;
    opacity: 0.65;
}

/* =========================================
   10. EDITORIAL FOOTER & SUB-FOOTER
   ========================================= */
.tdh-footer-main {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 0;
    border-top: 4px solid var(--tdh-ink-black);
}

.tdh-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tdh-footer-brand-col {
    display: flex;
    flex-direction: column;
}

.tdh-footer-logo {
    font-family: var(--tdh-font-headline);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 4px;
}

.tdh-footer-tagline {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #94a3b8;
    margin: 0 0 14px;
}

.tdh-footer-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 20px;
}

.tdh-footer-socials {
    display: flex;
    gap: 12px;
}

.tdh-social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tdh-social-icon:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}

.tdh-footer-heading {
    font-family: var(--tdh-font-ui);
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    margin: 0 0 18px;
}

.tdh-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tdh-footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.15s ease;
}

.tdh-footer-links li a:hover {
    color: #ffffff;
}

.tdh-footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.tdh-footer-newsletter-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--tdh-radius-sm);
    color: #ffffff;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
}

.tdh-footer-newsletter-btn {
    width: 100%;
    padding: 10px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: var(--tdh-radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tdh-footer-newsletter-btn:hover {
    background: #1d4ed8;
}

.tdh-footer-note {
    font-size: 11.5px;
    color: #64748b;
}

/* Sub-Footer / Bottom Bar (CLEAN & NO JUNK LINKS) */
.tdh-footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 30px;
    font-size: 13px;
    color: #64748b;
}

.tdh-footer-copy strong {
    color: #cbd5e1;
}

.tdh-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tdh-footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tdh-footer-bottom-links a:hover {
    color: #ffffff;
}

.tdh-footer-dot {
    color: #475569;
}

/* Back to Top */
.tdh-scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: var(--tdh-ink-black);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.tdh-scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
}

.tdh-scroll-top-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* =========================================
   11. SEARCH MODAL
   ========================================= */
.tdh-search-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tdh-search-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.tdh-search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}

.tdh-search-modal-box {
    position: relative;
    background: #ffffff;
    border-radius: var(--tdh-radius-md);
    width: 580px;
    max-width: 90%;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.tdh-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tdh-search-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.tdh-search-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--tdh-ink-muted);
}

.tdh-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tdh-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--tdh-border-medium);
    border-radius: var(--tdh-radius-sm);
    font-size: 15px;
    font-family: var(--tdh-font-ui);
    outline: none;
}

.tdh-search-input:focus {
    border-color: var(--tdh-accent-blue);
}

.tdh-search-submit {
    padding: 12px 20px;
    background: var(--tdh-ink-black);
    color: #ffffff;
    border: none;
    border-radius: var(--tdh-radius-sm);
    font-weight: 700;
    cursor: pointer;
}

.tdh-search-suggestions {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--tdh-ink-muted);
    flex-wrap: wrap;
}

.tdh-search-suggestions a {
    color: var(--tdh-accent-blue);
    text-decoration: none;
}

/* =========================================
   11b. TECH SPOTLIGHT SECTION (SEJ Style)
   ========================================= */
.tdh-tech-spotlight-section {
    background: #f8fafc;
    border-top: 1px solid var(--tdh-border-subtle);
    border-bottom: 1px solid var(--tdh-border-medium);
    padding: 42px 0 46px;
    margin-bottom: 40px;
}

.tdh-spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--tdh-ink-black);
}

.tdh-spotlight-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tdh-spotlight-title {
    font-family: var(--tdh-font-headline);
    font-size: 26px;
    font-weight: 900;
    color: var(--tdh-ink-black);
    margin: 0;
    letter-spacing: -0.02em;
}

.tdh-pill-badge {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--tdh-font-ui);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tdh-accent-blue);
    background: rgba(37, 99, 235, 0.08);
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.tdh-view-all-link {
    font-family: var(--tdh-font-ui);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tdh-accent-blue);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.tdh-view-all-link:hover {
    color: #1e40af;
    transform: translateX(3px);
}

.tdh-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.tdh-tech-card {
    background: #ffffff;
    border: 1px solid var(--tdh-border-medium);
    border-radius: var(--tdh-radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tdh-tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.tdh-tech-media {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #0f172a;
}

.tdh-tech-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.tdh-tech-card:hover .tdh-tech-media img {
    transform: scale(1.04);
}

.tdh-card-read-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.tdh-tech-body {
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tdh-tech-meta {
    font-size: 12px;
    color: var(--tdh-ink-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.tdh-tech-card-title {
    font-family: var(--tdh-font-headline);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 8px;
}

.tdh-tech-card-title a {
    color: var(--tdh-ink-black);
    text-decoration: none;
    transition: color 0.15s ease;
}

.tdh-tech-card-title a:hover {
    color: var(--tdh-accent-blue);
}

.tdh-tech-excerpt {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--tdh-ink-body);
    margin: 0 0 16px;
    flex-grow: 1;
}

.tdh-tech-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--tdh-border-subtle);
    font-size: 12px;
}

.tdh-author-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--tdh-ink-dark);
}

.tdh-avatar-micro {
    border-radius: 50%;
}

.tdh-read-link {
    font-weight: 700;
    color: var(--tdh-accent-blue);
    text-decoration: none;
    transition: transform 0.15s ease;
}

.tdh-read-link:hover {
    transform: translateX(2px);
}

/* =========================================
   11c. CULTURAL & SPIRITUAL SECTION (YatraDham Reference)
   ========================================= */
.tdh-culture-section {
    background: #fffbf5;
    border-top: 1px solid #fed7aa;
    border-bottom: 1px solid #fde68a;
    padding: 48px 0 54px;
    margin-top: 48px;
    margin-bottom: 48px;
}

.tdh-culture-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #b45309;
}

.tdh-culture-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tdh-culture-badge {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--tdh-font-ui);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a3412;
    background: #ffedd5;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid #fdba74;
}

.tdh-culture-title {
    font-family: var(--tdh-font-headline);
    font-size: 26px;
    font-weight: 900;
    color: #431407;
    margin: 0;
    letter-spacing: -0.02em;
}

.tdh-culture-subtitle {
    font-size: 14px;
    color: #78350f;
    margin: 0;
    line-height: 1.5;
}

.tdh-culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.tdh-culture-card {
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: var(--tdh-radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tdh-culture-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.12);
    border-color: #f97316;
}

.tdh-culture-media {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #1c1917;
}

.tdh-culture-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.tdh-culture-card:hover .tdh-culture-media img {
    transform: scale(1.05);
}

.tdh-culture-cat-label {
    font-size: 11px;
    font-weight: 800;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tdh-culture-cat-pill,
.tdh-card-read-badge,
.tdh-cat-lead-read {
    display: none !important;
}

.tdh-culture-body {
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tdh-culture-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #92400e;
    margin-bottom: 10px;
    font-weight: 600;
}

.tdh-culture-card-title {
    font-family: var(--tdh-font-headline);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px;
}

.tdh-culture-card-title a {
    color: #431407;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tdh-culture-card-title a:hover {
    color: #ea580c;
}

.tdh-culture-excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--tdh-ink-body);
    margin: 0 0 18px;
    flex-grow: 1;
}

.tdh-culture-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #ffedd5;
    font-size: 12.5px;
}

.tdh-culture-link {
    font-weight: 800;
    color: #c2410c;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.tdh-culture-link:hover {
    transform: translateX(3px);
    color: #9a3412;
}

/* =========================================
   11d. DYNAMIC CATEGORY SHOWCASE & BLOG SECTION
   ========================================= */
.tdh-category-showcase-section {
    background: #f8fafc;
    border-top: 1px solid var(--tdh-border-medium);
    border-bottom: 1px solid var(--tdh-border-medium);
    padding: 48px 0 54px;
    margin-bottom: 40px;
}

.tdh-cat-showcase-header {
    margin-bottom: 32px;
    text-align: center;
}

.tdh-cat-showcase-title-group {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tdh-cat-showcase-title {
    font-family: var(--tdh-font-headline);
    font-size: 28px;
    font-weight: 900;
    color: var(--tdh-ink-black);
    margin: 0;
    letter-spacing: -0.02em;
}

.tdh-cat-showcase-subtitle {
    font-size: 14.5px;
    color: var(--tdh-ink-muted);
    margin: 0;
    line-height: 1.55;
}

.tdh-cat-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tdh-cat-col {
    background: #ffffff;
    border: 1px solid var(--tdh-border-medium);
    border-radius: var(--tdh-radius-md);
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tdh-cat-col:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.tdh-cat-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 3px solid #2563eb;
    padding-top: 14px;
    margin-bottom: 18px;
    gap: 12px;
}

.tdh-cat-col-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tdh-cat-col-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tdh-cat-col-title {
    font-family: var(--tdh-font-headline);
    font-size: 17px;
    font-weight: 800;
    color: var(--tdh-ink-black);
    margin: 0;
    line-height: 1.25;
}

.tdh-cat-col-more {
    font-family: var(--tdh-font-ui);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.tdh-cat-col-more:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.tdh-cat-col-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

/* 1st Lead Card */
.tdh-cat-lead-card {
    border-bottom: 1px solid var(--tdh-border-subtle);
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tdh-cat-lead-thumb {
    position: relative;
    border-radius: var(--tdh-radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
}

.tdh-cat-lead-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tdh-cat-lead-card:hover .tdh-cat-lead-thumb img {
    transform: scale(1.04);
}

.tdh-cat-lead-read {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
}

.tdh-cat-lead-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tdh-cat-lead-date {
    font-size: 11.5px;
    color: var(--tdh-ink-muted);
    font-weight: 600;
}

.tdh-cat-lead-title {
    font-family: var(--tdh-font-headline);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.tdh-cat-lead-title a {
    color: var(--tdh-ink-black);
    text-decoration: none;
    transition: color 0.15s ease;
}

.tdh-cat-lead-title a:hover {
    color: var(--tdh-accent-blue);
}

.tdh-cat-lead-excerpt {
    font-size: 12.5px;
    color: var(--tdh-ink-body);
    line-height: 1.5;
    margin: 0;
}

/* Secondary Mini Cards */
.tdh-cat-mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tdh-cat-mini-thumb {
    width: 58px;
    height: 58px;
    border-radius: var(--tdh-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.tdh-cat-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.tdh-cat-mini-item:hover .tdh-cat-mini-thumb img {
    transform: scale(1.06);
}

.tdh-cat-mini-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tdh-cat-mini-date {
    font-size: 11px;
    color: var(--tdh-ink-muted);
}

.tdh-cat-mini-title {
    font-family: var(--tdh-font-headline);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tdh-cat-mini-title a {
    color: var(--tdh-ink-dark);
    text-decoration: none;
    transition: color 0.15s ease;
}

.tdh-cat-mini-title a:hover {
    color: var(--tdh-accent-blue);
}

.tdh-cat-no-posts {
    font-size: 13px;
    color: var(--tdh-ink-muted);
    font-style: italic;
    margin: 10px 0;
}

/* =========================================
   11e. PRE-FOOTER LEADERBOARD AD SECTION
   ========================================= */
.tdh-midpage-ad-section {
    padding: 24px 0 16px;
}

.tdh-prefooter-ad-section {
    padding: 10px 0 46px;
}

/* =========================================
   12. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .tdh-showcase-grid {
        grid-template-columns: 1fr;
    }
    .tdh-top-stories-rail {
        border-left: none;
        border-top: 1px solid var(--tdh-border-medium);
        padding-left: 0;
        padding-top: 24px;
    }
    .tdh-main-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .tdh-editorial-sidebar {
        position: static;
    }
    .tdh-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tdh-culture-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tdh-cat-showcase-grid {
        grid-template-columns: 1fr;
    }
    .tdh-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .tdh-top-bar {
        display: none;
    }

    /* Clean Mobile Header Layout */
    .tdh-header-main {
        padding: 10px 0;
        position: relative;
    }
    .tdh-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .tdh-brand-block {
        min-width: 0;
        flex: 1 1 auto;
    }
    .tdh-logo-link {
        gap: 8px;
        align-items: center;
        text-decoration: none;
        display: inline-flex;
    }
    .tdh-header-logo-img {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }
    .tdh-brand-text {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }
    .tdh-logo-title {
        font-size: 18px;
        font-weight: 800;
        letter-spacing: -0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        color: var(--tdh-ink-black);
    }
    .tdh-logo-tagline {
        display: none !important;
    }
    .tdh-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    .tdh-subscribe-btn {
        display: none !important;
    }
    .tdh-search-toggle {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
        flex-shrink: 0 !important;
        box-shadow: none !important;
    }
    .tdh-search-toggle svg {
        width: 18px !important;
        height: 18px !important;
        stroke: #0f172a !important;
    }
    .tdh-search-toggle .tdh-search-btn-text {
        display: none !important;
    }
    .tdh-mobile-nav-toggle {
        display: flex !important;
        width: 38px !important;
        height: 38px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 8px !important;
        background: #0f172a !important;
        cursor: pointer !important;
        flex-direction: column !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
        box-shadow: none !important;
    }
    .tdh-mobile-nav-toggle span {
        display: block !important;
        width: 20px !important;
        height: 2.5px !important;
        background: #ffffff !important;
        border-radius: 2px !important;
        margin: 0 !important;
    }

    /* Move GTranslate completely away from header on mobile to floating bottom-right corner */
    .gtranslate_wrapper,
    div[id*="gt-wrapper"],
    .gt_container-cpv1j9,
    .gt_switcher_wrapper {
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        right: 14px !important;
        left: auto !important;
        z-index: 999999 !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
        border-radius: 20px !important;
        margin: 0 !important;
    }

    /* Mobile Dropdown Menu */
    .tdh-primary-navbar {
        display: none !important;
        position: static !important;
        width: 100% !important;
        background: #ffffff !important;
        border-bottom: 2px solid var(--tdh-ink-black) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    }
    .tdh-primary-navbar.is-mobile-open {
        display: block !important;
    }
    .tdh-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 14px;
        list-style: none;
        margin: 0;
    }
    .tdh-nav-item {
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
    }
    .tdh-nav-item:last-child {
        border-bottom: none;
    }
    .tdh-nav-item a {
        padding: 12px 0;
        width: 100%;
        font-size: 15px;
        font-weight: 700;
        color: var(--tdh-ink-black);
        display: block;
    }
    .tdh-nav-side {
        display: none;
    }
    .tdh-medium-card {
        grid-template-columns: 1fr;
    }
    .tdh-card-thumbnail {
        width: 100%;
        height: 180px;
        order: -1;
    }
    .tdh-ad-infeed-card {
        grid-template-columns: 1fr;
    }
    .tdh-ad-infeed-right {
        display: none;
    }
    .tdh-spotlight-header,
    .tdh-culture-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .tdh-tech-grid {
        grid-template-columns: 1fr;
    }
    .tdh-culture-grid {
        grid-template-columns: 1fr;
    }
    .tdh-footer-grid {
        grid-template-columns: 1fr;
    }
    .tdh-footer-bottom-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .tdh-ad-leaderboard {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .tdh-header-main {
        padding: 8px 0;
    }
    .tdh-header-logo-img {
        width: 34px;
        height: 34px;
    }
    .tdh-logo-title {
        font-size: 16px;
    }
    .tdh-header-actions {
        gap: 6px;
    }
    .tdh-search-toggle,
    .tdh-mobile-nav-toggle {
        width: 32px;
        height: 32px;
    }
}
