/*
Theme Name: TechDeft
Theme URI: https://techdeft.com
Author: TechDeft
Author URI: https://techdeft.com
Description: A fast, SEO-optimized custom theme for TechDeft — a General Tech Blog covering gadgets, software, AI tools, how-tos, reviews and cybersecurity.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techdeft
Tags: blog, technology, fast, seo-friendly, custom-colors, custom-menu, featured-images, responsive-layout
*/

/* ============================================================
   RESET & BASE
============================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background:#F8FAFC;color:#0F172A;font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:#3B82F6;text-decoration:none;transition:color .2s}
a:hover{color:#2563EB}
ul,ol{list-style:none}
button,input,textarea,select{font-family:inherit;font-size:inherit;border:none;outline:none}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1,h2,h3,h4,h5,h6{font-family:'Sora',sans-serif;font-weight:700;line-height:1.25;color:#0F172A}
h1{font-size:clamp(1.75rem,4vw,2.5rem)}
h2{font-size:clamp(1.25rem,3vw,1.75rem)}
h3{font-size:clamp(1rem,2.5vw,1.25rem)}
h4{font-size:1rem}
p{margin-bottom:1rem;color:#374151}
strong{font-weight:600}

/* ============================================================
   LAYOUT CONTAINERS
============================================================ */
.td-container{width:100%;max-width:1200px;margin:0 auto;padding:0 20px}
.td-grid{display:grid;grid-template-columns:1fr 300px;gap:30px;align-items:start}
@media(max-width:900px){.td-grid{grid-template-columns:1fr}}

/* ============================================================
   NAVIGATION / HEADER
============================================================ */
#site-header{background:#0F172A;position:sticky;top:0;z-index:999;box-shadow:0 1px 0 rgba(255,255,255,.05)}
.td-nav{display:flex;align-items:center;justify-content:space-between;height:58px;gap:20px}
.site-branding a{display:flex;align-items:center;gap:0;text-decoration:none}
.site-logo{font-family:'Sora',sans-serif;font-size:22px;font-weight:800;color:#fff;letter-spacing:-0.5px}
.site-logo span{color:#3B82F6}
.main-nav{display:flex;align-items:center;gap:4px}
.main-nav a{color:#94A3B8;font-size:13px;font-weight:500;padding:6px 10px;border-radius:6px;transition:all .2s;white-space:nowrap}
.main-nav a:hover,.main-nav a.current{color:#fff;background:rgba(255,255,255,.06)}
.nav-search-wrap{display:flex;align-items:center}
.nav-search-form{display:flex;align-items:center;gap:6px;background:#1E293B;border:1px solid #334155;border-radius:8px;padding:5px 10px}
.nav-search-form input{background:transparent;color:#94A3B8;font-size:12px;width:130px;caret-color:#3B82F6}
.nav-search-form input::placeholder{color:#64748B}
.nav-search-form button{background:none;cursor:pointer;color:#64748B;line-height:1;padding:0;font-size:14px}
.nav-search-form button:hover{color:#3B82F6}
.nav-menu-toggle{display:none;background:none;cursor:pointer;color:#fff;font-size:20px;padding:4px}
@media(max-width:900px){
  .main-nav{display:none;position:absolute;top:58px;left:0;right:0;background:#0F172A;padding:12px 20px;flex-direction:column;align-items:flex-start;gap:2px;border-top:1px solid #1E293B}
  .main-nav.open{display:flex}
  .nav-menu-toggle{display:block}
  .nav-search-wrap{display:none}
}

/* ============================================================
   HERO SECTION (homepage)
============================================================ */
.td-hero{background:linear-gradient(135deg,#0F172A 0%,#1E293B 60%,#0F2244 100%);padding:60px 0;position:relative;overflow:hidden}
.td-hero::before{content:'';position:absolute;top:-60px;right:-60px;width:350px;height:350px;border-radius:50%;background:radial-gradient(circle,rgba(59,130,246,.12) 0%,transparent 70%);pointer-events:none}
.td-hero::after{content:'';position:absolute;bottom:-40px;left:30%;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(59,130,246,.06) 0%,transparent 70%);pointer-events:none}
.hero-inner{position:relative;z-index:1;max-width:640px}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(59,130,246,.15);border:1px solid rgba(59,130,246,.35);color:#60A5FA;font-size:11px;font-weight:700;padding:5px 14px;border-radius:20px;margin-bottom:20px;letter-spacing:.8px;text-transform:uppercase}
.hero-badge-dot{width:7px;height:7px;background:#3B82F6;border-radius:50%;animation:herobeat 2s ease-in-out infinite}
@keyframes herobeat{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.85)}}
.hero-title{font-family:'Sora',sans-serif;font-size:clamp(2rem,5vw,3.25rem);font-weight:800;color:#fff;line-height:1.15;margin-bottom:14px;letter-spacing:-1.5px}
.hero-title em{color:#3B82F6;font-style:normal}
.hero-desc{color:#94A3B8;font-size:15px;line-height:1.7;max-width:480px;margin-bottom:24px}
.hero-btns{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:32px}
.btn-primary{background:#3B82F6;color:#fff;padding:11px 22px;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer;transition:background .2s,transform .15s;display:inline-flex;align-items:center;gap:6px}
.btn-primary:hover{background:#2563EB;color:#fff;transform:translateY(-1px)}
.btn-secondary{background:transparent;color:#94A3B8;padding:11px 22px;border-radius:9px;font-size:13px;font-weight:500;cursor:pointer;border:1px solid #334155;transition:all .2s;display:inline-flex;align-items:center;gap:6px}
.btn-secondary:hover{color:#fff;border-color:#64748B;background:rgba(255,255,255,.04)}
.hero-stats{display:flex;gap:28px;flex-wrap:wrap;padding-top:24px;border-top:1px solid rgba(255,255,255,.07)}
.hero-stat{color:#64748B;font-size:12px;display:flex;align-items:center;gap:7px}
.hero-stat-icon{color:#3B82F6;font-size:16px}

/* ============================================================
   CATEGORY PILLS BAR
============================================================ */
.td-cats-bar{background:#fff;border-bottom:1px solid #E2E8F0}
.td-cats-inner{display:flex;gap:8px;overflow-x:auto;padding:12px 0;scrollbar-width:none}
.td-cats-inner::-webkit-scrollbar{display:none}
.cat-pill{background:#F1F5F9;color:#475569;font-size:11px;font-weight:600;padding:6px 16px;border-radius:20px;white-space:nowrap;cursor:pointer;transition:all .2s;letter-spacing:.3px;display:inline-block}
.cat-pill:hover,.cat-pill.active,.cat-pill.current-cat{background:#EFF6FF;color:#2563EB;border:1px solid #BFDBFE}

/* ============================================================
   SECTION LABELS
============================================================ */
.td-section-label{font-size:10px;font-weight:700;color:#3B82F6;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:16px;display:flex;align-items:center;gap:8px}
.td-section-label::after{content:'';flex:1;height:1px;background:#E2E8F0}

/* ============================================================
   POST CARDS - FEATURED
============================================================ */
.td-post-featured{background:#fff;border:1px solid #E2E8F0;border-radius:14px;overflow:hidden;margin-bottom:24px;transition:box-shadow .2s}
.td-post-featured:hover{box-shadow:0 4px 20px rgba(0,0,0,.08)}
.td-post-featured .post-thumb{position:relative;height:220px;overflow:hidden}
.td-post-featured .post-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.td-post-featured:hover .post-thumb img{transform:scale(1.04)}
.post-thumb-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:56px}
.post-thumb-label{position:absolute;top:14px;left:14px;background:#3B82F6;color:#fff;font-size:10px;font-weight:700;padding:4px 10px;border-radius:5px;letter-spacing:.5px;text-transform:uppercase}
.post-thumb-time{position:absolute;bottom:14px;right:14px;background:rgba(0,0,0,.55);backdrop-filter:blur(4px);color:#fff;font-size:10px;padding:3px 9px;border-radius:5px}
.post-card-body{padding:18px}
.post-meta-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.post-cat-badge{font-size:10px;font-weight:700;color:#3B82F6;letter-spacing:.5px;text-transform:uppercase}
.post-date-text{font-size:10px;color:#94A3B8}
.td-post-featured h2{font-size:clamp(1.1rem,2.5vw,1.4rem);font-weight:700;color:#0F172A;line-height:1.3;margin-bottom:8px}
.td-post-featured h2 a{color:inherit}
.td-post-featured h2 a:hover{color:#3B82F6}
.post-excerpt{font-size:13px;color:#64748B;line-height:1.6;margin-bottom:14px}
.post-author-row{display:flex;align-items:center;gap:10px;padding-top:12px;border-top:1px solid #F1F5F9}
.author-avatar{width:28px;height:28px;border-radius:50%;background:#3B82F6;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;overflow:hidden;flex-shrink:0}
.author-avatar img{width:100%;height:100%;object-fit:cover}
.author-name-text{font-size:11px;color:#64748B}

/* ============================================================
   POST CARDS - GRID  (fixed: display:block on .post-thumb)
============================================================ */
.td-posts-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px;align-items:start}
@media(max-width:600px){.td-posts-grid{grid-template-columns:1fr}}

.td-post-card{
  background:#fff;border:1px solid #E2E8F0;border-radius:12px;
  overflow:hidden;cursor:pointer;
  transition:box-shadow .2s,transform .15s;
  display:flex;flex-direction:column;
}
.td-post-card:hover{box-shadow:0 6px 24px rgba(0,0,0,.1);transform:translateY(-3px)}

/* KEY FIX: .post-thumb must be display:block so height + overflow clip work */
.td-post-card .post-thumb{
  display:block;          /* was inline → height was ignored */
  height:160px;           /* increased for better visual weight */
  overflow:hidden;
  position:relative;
  flex-shrink:0;
  text-decoration:none;
}
.td-post-card .post-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s;display:block}
.td-post-card:hover .post-thumb img{transform:scale(1.05)}

/* Gradient placeholder — fills the entire .post-thumb height */
.td-post-card .post-thumb-placeholder{
  width:100%;height:100%;    /* height:100% works because parent has explicit height now */
  display:flex;align-items:center;justify-content:center;
  font-size:36px;
}

.td-post-card .post-card-body{padding:14px;flex:1;display:flex;flex-direction:column;gap:6px}
.td-post-card .post-cat-badge{font-size:9px;letter-spacing:.5px;text-transform:uppercase;font-weight:700;color:#3B82F6}
.td-post-card h3{font-size:14px;font-weight:600;color:#0F172A;line-height:1.4;margin:0}
.td-post-card h3 a{color:inherit;text-decoration:none}
.td-post-card h3 a:hover{color:#3B82F6}
.post-card-excerpt{font-size:12px;color:#64748B;line-height:1.55;margin:0;flex:1}
.post-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:8px;border-top:1px solid #F1F5F9}
.td-post-card .post-date-text{font-size:10px;color:#94A3B8}
.post-read-badge{font-size:10px;color:#94A3B8;background:#F1F5F9;padding:2px 8px;border-radius:10px}

/* Also fix featured post thumb */
.td-post-featured .post-thumb{display:block;text-decoration:none}

/* Gradient placeholders */
.thumb-blue  {background:linear-gradient(135deg,#1E3A5F,#1E293B)}
.thumb-purple{background:linear-gradient(135deg,#2D1B69,#1E1B4B)}
.thumb-green {background:linear-gradient(135deg,#14532D,#0F1F14)}
.thumb-orange{background:linear-gradient(135deg,#7C2D12,#1C0A00)}
.thumb-cyan  {background:linear-gradient(135deg,#164E63,#0F172A)}
.thumb-pink  {background:linear-gradient(135deg,#831843,#1E0A12)}
.thumb-ai    {background:linear-gradient(135deg,#312E81,#1E293B)}
.thumb-tech  {background:linear-gradient(135deg,#1E3A5F,#0F172A)}

/* No-posts state */
.td-no-posts{background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:48px;text-align:center;color:#64748B}

/* ============================================================
   PAGINATION
============================================================ */
.td-pagination{display:flex;gap:8px;justify-content:center;margin:24px 0}
.td-pagination a,.td-pagination span{background:#fff;border:1px solid #E2E8F0;color:#374151;font-size:13px;font-weight:500;padding:8px 14px;border-radius:8px;transition:all .2s;display:inline-flex;align-items:center;justify-content:center}
.td-pagination a:hover,.td-pagination .current{background:#3B82F6;border-color:#3B82F6;color:#fff}

/* ============================================================
   SIDEBAR WIDGETS
============================================================ */
.td-sidebar{}
.td-widget{background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:18px;margin-bottom:18px}
.td-widget-title{font-size:11px;font-weight:700;color:#0F172A;letter-spacing:.8px;text-transform:uppercase;margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid #3B82F6;display:inline-block}
/* Trending */
.trending-list{}
.trending-item{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid #F1F5F9}
.trending-item:last-child{border-bottom:none;padding-bottom:0}
.trending-num{font-size:18px;font-weight:800;color:#E2E8F0;line-height:1;min-width:20px;flex-shrink:0}
.trending-info .trending-title{font-size:12px;font-weight:500;color:#374151;line-height:1.4;margin-bottom:3px;display:block}
.trending-info .trending-title:hover{color:#3B82F6}
.trending-meta{font-size:10px;color:#94A3B8}
/* Newsletter widget */
.td-newsletter-widget{background:linear-gradient(135deg,#1E3A5F,#0F172A);border-color:transparent}
.td-newsletter-widget .nl-icon{font-size:28px;margin-bottom:10px;display:block}
.td-newsletter-widget h4{font-family:'Sora',sans-serif;font-size:15px;font-weight:700;color:#fff;margin-bottom:6px}
.td-newsletter-widget p{font-size:12px;color:#94A3B8;line-height:1.5;margin-bottom:14px}
.nl-form input{width:100%;background:#0F172A;border:1px solid #334155;color:#fff;padding:9px 12px;border-radius:8px;font-size:12px;margin-bottom:8px;transition:border-color .2s}
.nl-form input::placeholder{color:#64748B}
.nl-form input:focus{border-color:#3B82F6}
.nl-form button{width:100%;background:#3B82F6;color:#fff;padding:9px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;transition:background .2s}
.nl-form button:hover{background:#2563EB}
/* Tags widget */
.tag-cloud-wrap{display:flex;flex-wrap:wrap;gap:6px}
.tag-cloud-wrap a{background:#F1F5F9;color:#475569;font-size:11px;font-weight:500;padding:5px 10px;border-radius:6px;transition:all .2s}
.tag-cloud-wrap a:hover{background:#EFF6FF;color:#2563EB}
/* About widget */
.about-widget-text{font-size:13px;color:#64748B;line-height:1.6}

/* ============================================================
   SINGLE POST
============================================================ */
.td-single-wrap{background:#fff;border:1px solid #E2E8F0;border-radius:14px;overflow:hidden}
.td-single-hero{position:relative;height:360px;overflow:hidden}
.td-single-hero img{width:100%;height:100%;object-fit:cover}
.td-single-content{padding:30px}
.td-single-meta{display:flex;align-items:center;gap:14px;margin-bottom:16px;flex-wrap:wrap}
.td-single-meta .post-cat-badge{font-size:11px}
.td-single-meta .post-date-text{font-size:11px}
.td-single-meta .post-read-time{font-size:11px;color:#94A3B8}
.td-single-content h1{font-size:clamp(1.4rem,3.5vw,2rem);font-weight:800;line-height:1.25;margin-bottom:16px;letter-spacing:-.5px}
.td-single-content .post-author-row{margin-bottom:24px;padding-bottom:20px;border-bottom:2px solid #F1F5F9}
.entry-content{font-size:15px;line-height:1.8;color:#374151}
.entry-content h2{font-size:1.4rem;font-weight:700;margin:28px 0 12px;color:#0F172A}
.entry-content h3{font-size:1.15rem;font-weight:600;margin:22px 0 10px;color:#0F172A}
.entry-content p{margin-bottom:18px}
.entry-content ul,.entry-content ol{margin:0 0 18px 22px;list-style:disc}
.entry-content ol{list-style:decimal}
.entry-content li{margin-bottom:6px;line-height:1.7}
.entry-content a{color:#3B82F6;border-bottom:1px solid rgba(59,130,246,.3);transition:border-color .2s}
.entry-content a:hover{border-color:#3B82F6}
.entry-content blockquote{border-left:4px solid #3B82F6;padding:14px 18px;background:#EFF6FF;border-radius:0 8px 8px 0;margin:20px 0;color:#1E3A5F;font-style:italic}
.entry-content img{border-radius:10px;margin:20px 0}
.entry-content pre,.entry-content code{background:#1E293B;color:#E2E8F0;border-radius:6px;font-family:monospace;font-size:13px}
.entry-content pre{padding:16px;overflow-x:auto;margin:20px 0}
.entry-content code{padding:2px 6px}
.entry-content table{width:100%;border-collapse:collapse;margin:20px 0;font-size:14px}
.entry-content table th{background:#0F172A;color:#fff;padding:10px 12px;text-align:left}
.entry-content table td{padding:9px 12px;border-bottom:1px solid #E2E8F0}
.entry-content table tr:hover td{background:#F8FAFC}
/* Post tags */
.post-tags-row{margin-top:24px;padding-top:20px;border-top:1px solid #F1F5F9;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.post-tags-label{font-size:12px;font-weight:600;color:#64748B}
.post-tags-row a{background:#F1F5F9;color:#475569;font-size:11px;padding:4px 10px;border-radius:5px}
.post-tags-row a:hover{background:#EFF6FF;color:#2563EB}
/* Related posts */
.td-related{margin-top:30px}
.td-related h3{font-size:14px;font-weight:700;color:#0F172A;margin-bottom:16px;text-transform:uppercase;letter-spacing:.8px}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:700px){.related-grid{grid-template-columns:1fr 1fr}}
.related-card{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:10px;overflow:hidden}
.related-card .post-thumb{height:80px}
.related-card .post-card-body{padding:10px}
.related-card h4{font-size:12px;font-weight:600;color:#0F172A;line-height:1.3}
.related-card h4 a{color:inherit}
.related-card h4 a:hover{color:#3B82F6}

/* ============================================================
   PAGE TEMPLATE
============================================================ */
.td-page-wrap{background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:40px;margin:30px 0}
.td-page-wrap h1{font-size:clamp(1.5rem,4vw,2.25rem);margin-bottom:24px;padding-bottom:20px;border-bottom:2px solid #F1F5F9}
.td-page-content{font-size:15px;line-height:1.8;color:#374151}
.td-page-content h2{font-size:1.35rem;font-weight:700;color:#0F172A;margin:26px 0 10px}
.td-page-content h3{font-size:1.1rem;font-weight:600;color:#0F172A;margin:20px 0 8px}
.td-page-content p{margin-bottom:16px}
.td-page-content ul,.td-page-content ol{margin:0 0 16px 22px}
.td-page-content ul{list-style:disc}
.td-page-content ol{list-style:decimal}
.td-page-content li{margin-bottom:6px;line-height:1.7}
.td-page-content a{color:#3B82F6}
.td-page-content a:hover{text-decoration:underline}
.td-page-content strong{color:#0F172A}
@media(max-width:600px){.td-page-wrap{padding:24px}}

/* ============================================================
   ARCHIVE / CATEGORY PAGE
============================================================ */
.td-archive-header{background:linear-gradient(135deg,#0F172A,#1E293B);padding:36px 0;margin-bottom:30px}
.td-archive-header h1{color:#fff;font-size:clamp(1.25rem,3vw,2rem);margin-bottom:6px}
.td-archive-header p{color:#94A3B8;font-size:13px}

/* ============================================================
   BREADCRUMB
============================================================ */
.td-breadcrumb{background:#fff;border-bottom:1px solid #E2E8F0;padding:10px 0}
.td-breadcrumb ol{display:flex;align-items:center;gap:6px;font-size:12px;color:#94A3B8}
.td-breadcrumb li{display:flex;align-items:center;gap:6px}
.td-breadcrumb li::after{content:'/';opacity:.5}
.td-breadcrumb li:last-child::after{display:none}
.td-breadcrumb a{color:#64748B}
.td-breadcrumb a:hover{color:#3B82F6}
.td-breadcrumb .current{color:#0F172A}

/* ============================================================
   404 PAGE
============================================================ */
.td-404{text-align:center;padding:80px 20px}
.td-404 .error-code{font-family:'Sora',sans-serif;font-size:120px;font-weight:800;color:#E2E8F0;line-height:1;margin-bottom:16px}
.td-404 h1{font-size:2rem;color:#0F172A;margin-bottom:12px}
.td-404 p{color:#64748B;font-size:15px;margin-bottom:28px}

/* ============================================================
   SEARCH PAGE — redesigned header + result cards
============================================================ */

/* ── Page header ───────────────────────────────────────── */
.td-search-page-header{
  background:linear-gradient(135deg,#0F172A 0%,#1E293B 100%);
  padding:36px 0;border-bottom:1px solid rgba(255,255,255,.06);
}
.td-search-page-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.td-search-page-meta{display:flex;align-items:center;gap:16px}
.td-search-page-icon{width:52px;height:52px;background:rgba(59,130,246,.15);border:1px solid rgba(59,130,246,.3);
  border-radius:12px;display:flex;align-items:center;justify-content:center;color:#60A5FA;flex-shrink:0}
.td-search-page-title{font-family:'Sora',sans-serif;font-size:clamp(1.2rem,3vw,1.75rem);
  font-weight:800;color:#fff;margin:0 0 4px;letter-spacing:-.5px}
.td-search-page-title em{color:#3B82F6;font-style:normal}
.td-search-page-count{font-size:13px;color:#94A3B8;margin:0}
.td-search-page-form{flex-shrink:0}
.td-search-page-form .td-search-form{border-color:#334155}
@media(max-width:640px){
  .td-search-page-inner{flex-direction:column;align-items:flex-start;gap:16px}
  .td-search-page-form{width:100%}
  .td-search-page-form .td-search-form{width:100%}
  .td-search-page-form .td-search-input{width:100%}
}

/* ── Results list ──────────────────────────────────────── */
.td-search-results-list{display:flex;flex-direction:column;gap:1px;margin-bottom:24px;
  background:#E2E8F0;border:1px solid #E2E8F0;border-radius:14px;overflow:hidden}

/* ── Search result card ────────────────────────────────── */
.td-search-card{
  display:flex;align-items:flex-start;gap:16px;
  padding:18px 20px;
  background:#fff;
  transition:background .15s;
  border:none;
}
.td-search-card:hover{background:#F8FAFC}
.td-search-card:last-child{border-bottom:none}

/* Thumbnail */
.td-sc-thumb{
  display:block;
  width:100px;height:100px;
  border-radius:10px;overflow:hidden;
  flex-shrink:0;background:#E2E8F0;
  text-decoration:none;
  transition:transform .2s;
}
.td-sc-thumb:hover{transform:scale(1.03)}
.td-sc-thumb img{width:100px;height:100px;object-fit:cover;display:block}
.td-sc-thumb-placeholder{
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  font-size:30px;opacity:.7;
}

/* Body */
.td-sc-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}

/* Meta row */
.td-sc-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.td-sc-cat{
  font-size:9px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;
  color:#3B82F6;background:rgba(59,130,246,.1);
  padding:3px 8px;border-radius:4px;white-space:nowrap;
}
.td-sc-date{font-size:11px;color:#94A3B8}
.td-sc-time{font-size:11px;color:#94A3B8}
.td-sc-time::before{content:'·';margin-right:6px}

/* Title */
.td-sc-title{font-size:15px;font-weight:700;color:#0F172A;line-height:1.35;margin:0}
.td-sc-title a{color:inherit;text-decoration:none}
.td-sc-title a:hover{color:#3B82F6}

/* Excerpt */
.td-sc-excerpt{font-size:13px;color:#64748B;line-height:1.6;margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Read more */
.td-sc-readmore{
  display:inline-flex;align-items:center;gap:5px;
  font-size:12px;font-weight:600;color:#3B82F6;
  text-decoration:none;margin-top:4px;width:fit-content;
  transition:gap .15s;
}
.td-sc-readmore:hover{gap:8px;color:#2563EB}

/* ── No results ────────────────────────────────────────── */
.td-search-no-results{
  background:#fff;border:1px solid #E2E8F0;border-radius:14px;
  padding:48px 32px;text-align:center;
}
.td-snr-icon{color:#CBD5E1;margin-bottom:16px;display:flex;justify-content:center}
.td-search-no-results h2{font-size:1.4rem;font-weight:700;color:#0F172A;margin-bottom:8px}
.td-search-no-results > p{font-size:14px;color:#64748B;margin-bottom:24px}
.td-search-no-results > p strong{color:#374151}
.td-snr-tips{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:10px;
  padding:16px 20px;margin-bottom:24px;text-align:left;display:inline-block;min-width:280px}
.td-snr-tips p{font-size:12px;font-weight:600;color:#374151;margin-bottom:8px}
.td-snr-tips ul{list-style:none;padding:0;margin:0}
.td-snr-tips li{font-size:12px;color:#64748B;padding:3px 0;padding-left:14px;position:relative}
.td-snr-tips li::before{content:'→';position:absolute;left:0;color:#3B82F6;font-size:10px;top:3px}
.td-snr-actions{display:flex;flex-direction:column;align-items:center;gap:0;margin-bottom:28px}
.td-snr-cats p{font-size:12px;color:#94A3B8;margin-bottom:10px}

/* ── Old fallback (keep for compatibility) ─────────────── */
.td-search-header{background:linear-gradient(135deg,#0F172A,#1E293B);padding:30px 0}
.td-search-header h1{color:#fff;font-size:1.5rem;margin-bottom:4px}
.td-search-header p{color:#94A3B8;font-size:13px}
.td-search-none{background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:48px;text-align:center;color:#64748B}

/* Mobile search card */
@media(max-width:600px){
  .td-search-card{gap:12px;padding:14px 16px}
  .td-sc-thumb,.td-sc-thumb img{width:72px;height:72px}
  .td-sc-title{font-size:13px}
  .td-sc-excerpt{-webkit-line-clamp:2}
}

/* ============================================================
   COMMENTS
============================================================ */
#comments{margin-top:30px;background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:28px}
#comments h2{font-size:1rem;font-weight:700;text-transform:uppercase;letter-spacing:.8px;margin-bottom:20px;color:#0F172A}
.comment-list{margin-bottom:24px}
.comment{padding:14px 0;border-bottom:1px solid #F1F5F9}
.comment-meta{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.comment-author .fn{font-size:13px;font-weight:600;color:#0F172A}
.comment-metadata{font-size:11px;color:#94A3B8}
.comment-content p{font-size:14px;color:#374151}
.comment-form input,.comment-form textarea{width:100%;border:1px solid #E2E8F0;border-radius:8px;padding:10px 14px;font-size:14px;color:#0F172A;margin-bottom:12px;transition:border-color .2s}
.comment-form input:focus,.comment-form textarea:focus{border-color:#3B82F6}
.comment-form textarea{height:120px;resize:vertical}
.comment-form .submit{background:#3B82F6;color:#fff;padding:10px 22px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;border:none;transition:background .2s}
.comment-form .submit:hover{background:#2563EB}

/* ============================================================
   FOOTER
============================================================ */
#site-footer{background:#0F172A;margin-top:0}
.footer-top{padding:48px 0 32px;border-bottom:1px solid #1E293B}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
@media(max-width:700px){.footer-grid{grid-template-columns:1fr;gap:28px}}
.footer-logo{font-family:'Sora',sans-serif;font-size:20px;font-weight:800;color:#fff;display:inline-block;margin-bottom:12px}
.footer-logo span{color:#3B82F6}
.footer-desc{font-size:13px;color:#64748B;line-height:1.6;max-width:280px}
.footer-col h5{font-size:11px;font-weight:700;color:#fff;letter-spacing:.8px;text-transform:uppercase;margin-bottom:14px}
.footer-col ul li{margin-bottom:8px}
.footer-col a{font-size:13px;color:#64748B;transition:color .2s;display:block}
.footer-col a:hover{color:#94A3B8}
.footer-bottom{padding:18px 0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.footer-copy{font-size:12px;color:#475569}
.footer-socials{display:flex;gap:8px}
.social-btn{width:32px;height:32px;background:#1E293B;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:13px;color:#64748B;cursor:pointer;transition:all .2s;text-decoration:none}
.social-btn:hover{background:#334155;color:#94A3B8}

/* ============================================================
   UTILITY
============================================================ */
.td-main-wrap{padding:30px 0}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.alignleft{float:left;margin:0 20px 10px 0}
.alignright{float:right;margin:0 0 10px 20px}
.aligncenter{display:block;margin:0 auto}
.wp-caption{max-width:100%}
.wp-caption-text{font-size:12px;color:#64748B;text-align:center;margin-top:6px}

/* ============================================================
   RESPONSIVE FINAL
============================================================ */
@media(max-width:768px){
  .td-hero{padding:40px 0}
  .td-single-content{padding:20px}
  .td-single-hero{height:220px}
  .footer-top{padding:32px 0 24px}
  .footer-bottom{flex-direction:column;text-align:center}
  .td-posts-grid{gap:10px}
}
@media(max-width:480px){
  .hero-btns{flex-direction:column}
  .btn-primary,.btn-secondary{justify-content:center;width:100%}
}


/* ============================================================
   FULL-WIDTH STATIC PAGES (times24x7.com style)
============================================================ */
.td-page-hero{background:linear-gradient(135deg,#0F172A 0%,#1E293B 100%);padding:36px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.td-page-hero-inner{display:flex;align-items:center;gap:20px}
.td-page-hero-icon{width:60px;height:60px;background:rgba(59,130,246,.15);border:1px solid rgba(59,130,246,.3);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#60A5FA;flex-shrink:0}
.td-page-hero-title{font-family:'Sora',sans-serif;font-size:clamp(1.4rem,3vw,2rem);font-weight:800;color:#fff;margin:0 0 6px;letter-spacing:-.5px}
.td-page-hero-breadcrumb{display:flex;align-items:center;gap:8px;font-size:12px;color:#64748B}
.td-page-hero-breadcrumb a{color:#94A3B8;text-decoration:none}
.td-page-hero-breadcrumb a:hover{color:#3B82F6}
.td-page-hero-breadcrumb span{color:#475569}

/* Full-width page content column */
.td-page-full{max-width:860px;margin:0 auto;padding:40px 0}
.td-page-content{font-size:15px;line-height:1.8;color:#374151}
.td-page-content h2{font-size:1.35rem;font-weight:700;color:#0F172A;margin:32px 0 12px;padding-bottom:8px;border-bottom:2px solid #EFF6FF}
.td-page-content h3{font-size:1.1rem;font-weight:600;color:#0F172A;margin:22px 0 8px}
.td-page-content p{margin-bottom:16px}
.td-page-content ul,.td-page-content ol{margin:0 0 18px 0;padding-left:0;list-style:none}
.td-page-content ul li{padding:5px 0 5px 22px;position:relative;color:#374151}
.td-page-content ul li::before{content:"→";position:absolute;left:0;color:#3B82F6;font-weight:700;font-size:12px;top:7px}
.td-page-content ol{counter-reset:td-counter}
.td-page-content ol li{counter-increment:td-counter;padding:6px 0 6px 28px;position:relative;border-bottom:1px solid #F1F5F9}
.td-page-content ol li::before{content:counter(td-counter);position:absolute;left:0;top:6px;width:20px;height:20px;background:#3B82F6;color:#fff;border-radius:50%;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1}
.td-page-content strong{color:#0F172A;font-weight:600}
.td-page-content a{color:#3B82F6;text-decoration:none;border-bottom:1px solid rgba(59,130,246,.3)}
.td-page-content a:hover{border-color:#3B82F6}
.td-page-content table{width:100%;border-collapse:collapse;margin:20px 0;font-size:14px;border-radius:8px;overflow:hidden;border:1px solid #E2E8F0}
.td-page-content table th{background:#0F172A;color:#fff;padding:10px 14px;text-align:left;font-size:12px;letter-spacing:.5px;text-transform:uppercase}
.td-page-content table td{padding:10px 14px;border-bottom:1px solid #F1F5F9;vertical-align:top}
.td-page-content table tr:hover td{background:#F8FAFC}

/* Contact callout box */
.td-contact-box{background:linear-gradient(135deg,#EFF6FF,#DBEAFE);border:1px solid #BFDBFE;border-radius:12px;padding:24px 28px;margin:28px 0;display:flex;align-items:flex-start;gap:16px}
.td-contact-box-icon{width:44px;height:44px;background:#3B82F6;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0;font-size:20px}
.td-contact-box h4{font-size:15px;font-weight:700;color:#1E3A5F;margin:0 0 6px}
.td-contact-box p{font-size:13px;color:#1E40AF;margin:0}
.td-contact-box a{color:#2563EB;font-weight:700;text-decoration:none}
.td-contact-box a:hover{text-decoration:underline}

/* FAQ section */
.td-faq-item{border:1px solid #E2E8F0;border-radius:10px;margin-bottom:10px;overflow:hidden}
.td-faq-q{background:#F8FAFC;padding:14px 18px;font-weight:600;color:#0F172A;font-size:14px;cursor:pointer;display:flex;justify-content:space-between;align-items:center}
.td-faq-q::after{content:"+";color:#3B82F6;font-size:18px;font-weight:300}
.td-faq-a{padding:14px 18px;font-size:13px;color:#64748B;line-height:1.7;border-top:1px solid #F1F5F9}

/* Social share row on pages */
.td-page-social{display:flex;align-items:center;gap:12px;margin-top:36px;padding-top:24px;border-top:2px solid #F1F5F9;font-size:12px;font-weight:600;color:#64748B}
.td-page-social a{width:34px;height:34px;background:#0F172A;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#94A3B8;transition:all .2s;text-decoration:none;border:none}
.td-page-social a:hover{background:#3B82F6;color:#fff}

/* Topics grid */
.td-topics-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:16px 0 24px}
.td-topic-card{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:10px;padding:12px 16px;display:flex;align-items:center;gap:10px;font-size:13px;font-weight:500;color:#374151}
.td-topic-card span{font-size:18px}

/* Guideline cards */
.td-guideline-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 24px}
.td-guideline-card{background:#fff;border:1px solid #E2E8F0;border-radius:10px;padding:16px;border-left:4px solid #3B82F6}
.td-guideline-card h4{font-size:12px;font-weight:700;color:#3B82F6;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
.td-guideline-card p{font-size:12px;color:#64748B;margin:0;line-height:1.5}
@media(max-width:600px){.td-guideline-cards{grid-template-columns:1fr}}

/* Section highlight box */
.td-highlight-box{background:#F0FDF4;border:1px solid #BBF7D0;border-radius:10px;padding:18px 20px;margin:20px 0}
.td-highlight-box p{color:#166534;font-size:13px;margin:0}
.td-warning-box{background:#FFF7ED;border:1px solid #FED7AA;border-radius:10px;padding:18px 20px;margin:20px 0}
.td-warning-box p{color:#9A3412;font-size:13px;margin:0}

@media(max-width:768px){.td-page-full{padding:24px 0}.td-page-hero-icon{display:none}.td-topics-grid{grid-template-columns:1fr 1fr}}
