/* =========================================================
   The Indian Tech Pro — Performance-Focused Editorial Theme
   Version: 2.6.0
   ========================================================= */

/* Top Reading Progress Bar */
.tit-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:99999;pointer-events:none}
.tit-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#2563eb,#7c3aed);transition:width .1s ease}

/* Design Tokens & CSS Variables */
:root{
  --tit-ink:#111827;
  --tit-muted:#667085;
  --tit-line:#e6e9ef;
  --tit-bg:#f6f8fb;
  --tit-card:#ffffff;
  --tit-brand:#2563eb;
  --tit-brand-2:#7c3aed;
  --tit-radius:16px;
  --tit-shadow:0 10px 30px rgba(16,24,40,.07);
  --tit-shell:1240px;
  --tit-3d-dark:#0b1220;
  --tit-3d-glow:rgba(37,99,235,.22);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.tit-site-body{
  margin:0;
  background:var(--tit-bg);
  color:var(--tit-ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  line-height:1.65;
  overflow-x:hidden;
}
a{color:inherit}
.tit-shell{width:min(var(--tit-shell),calc(100% - 40px));margin-inline:auto}

/* WordPress Core Required Classes */
.screen-reader-text{
  border:0;
  clip:rect(1px,1px,1px,1px);
  clip-path:inset(50%);
  height:1px;
  margin:-1px;
  overflow:hidden;
  padding:0;
  position:absolute!important;
  width:1px;
  word-wrap:normal!important;
}
.screen-reader-text:focus{
  background-color:#fff;
  border-radius:6px;
  box-shadow:0 0 2px 2px rgba(0,0,0,.6);
  clip:auto!important;
  clip-path:none;
  color:#111827;
  display:block;
  font-size:14px;
  font-weight:700;
  height:auto;
  left:5px;
  line-height:normal;
  padding:15px 23px 14px;
  text-decoration:none;
  top:5px;
  width:auto;
  z-index:100000;
}
.alignleft{float:left;margin:0.5em 1.5em 1em 0;max-width:100%}
.alignright{float:right;margin:0.5em 0 1em 1.5em;max-width:100%}
.aligncenter{clear:both;display:block;margin:1em auto;text-align:center}
.alignwide{max-width:1000px;margin-inline:auto}
.alignfull{max-width:100vw;margin-inline:calc(50% - 50vw)}
.wp-caption{max-width:100%;margin-bottom:1.5em;text-align:center}
.wp-caption-text{font-size:12px;color:var(--tit-muted);margin-top:6px}

.tit-skip{position:absolute;left:-9999px}
.tit-skip:focus{left:16px;top:16px;z-index:9999;background:#fff;padding:10px 14px;border-radius:8px;box-shadow:var(--tit-shadow)}

/* Header & 3D Brand Styling */
.tit-header{background:#fff;border-bottom:1px solid var(--tit-line);position:relative;z-index:50;box-shadow:0 5px 24px rgba(15,23,42,.08)}
.tit-header__top{background:#fff;position:relative;isolation:isolate}
.tit-header__top:after{content:"";position:absolute;inset:auto 0 0;height:1px;background:linear-gradient(90deg,transparent,var(--tit-brand),var(--tit-brand-2),transparent);opacity:.35}
.tit-header__inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:visible}
.tit-brand{display:flex;align-items:center;gap:11px;text-decoration:none;perspective:800px}
.tit-brand .custom-logo{max-height:52px;width:auto;display:block;object-fit:contain;object-position:left center}
.tit-brand__3d{display:grid;place-items:center;transform:translateZ(0);transition:transform .22s ease,filter .22s ease}
.tit-brand:hover .tit-brand__3d{transform:translateY(-2px) rotateX(3deg) rotateY(-4deg);filter:drop-shadow(0 8px 12px var(--tit-3d-glow))}
.tit-brand__mark{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,var(--tit-brand),var(--tit-brand-2));color:#fff;display:grid;place-items:center;font-weight:900;position:relative;overflow:hidden;box-shadow:inset 0 1px rgba(255,255,255,.35),0 9px 18px rgba(37,99,235,.25)}
.tit-brand__mark:after{content:"";position:absolute;left:-30%;top:-45%;width:70%;height:180%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent);transform:rotate(25deg);pointer-events:none}
.tit-brand__text{min-width:0}
.tit-brand strong{display:block;font-size:20px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tit-brand small{display:block;color:var(--tit-muted);font-size:11px;margin-top:3px}

.tit-header__tools{display:flex;gap:10px;align-items:center}
.tit-search-toggle,.tit-menu-toggle{border:1px solid var(--tit-line);background:#fff;border-radius:10px;padding:9px 12px;text-decoration:none;font-weight:700;font-size:13px;cursor:pointer;box-shadow:0 5px 14px rgba(15,23,42,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;display:inline-flex;align-items:center;gap:6px}
.tit-search-toggle:hover,.tit-menu-toggle:hover{transform:translateY(-2px);box-shadow:0 9px 20px rgba(15,23,42,.11);border-color:#cbd5e1}
.tit-menu-toggle{display:none}

/* Expandable Header Search */
.tit-header-search{background:#f8fafc;border-bottom:1px solid var(--tit-line);padding:14px 0;animation:titFadeIn .2s ease-out}
@keyframes titFadeIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.tit-search-form{display:flex;gap:8px;align-items:center;max-width:620px;margin-inline:auto}
.tit-search-label{flex:1;margin:0}
.tit-search-input{width:100%;padding:10px 14px;border:1px solid var(--tit-line);border-radius:10px;font-size:14px;outline:none;background:#fff;transition:border-color .18s ease,box-shadow .18s ease}
.tit-search-input:focus{border-color:var(--tit-brand);box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.tit-search-submit{background:var(--tit-brand);color:#fff;border:none;border-radius:10px;padding:10px 18px;font-weight:700;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:background .18s ease,transform .18s ease}
.tit-search-submit:hover{background:#1d4ed8;transform:translateY(-1px)}

/* Navigation & 3D Rail */
.tit-nav{background:linear-gradient(135deg,#0b1220 0%,#111827 55%,#172554 100%);color:#fff;box-shadow:inset 0 1px rgba(255,255,255,.06),0 8px 22px rgba(15,23,42,.12);position:relative;z-index:40}
.tit-nav__inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:47px;position:relative;z-index:20}
.tit-nav__main{min-width:0;flex:1;position:relative;z-index:30}
.tit-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:5px;min-width:0}
.tit-menu li{margin:0;position:relative}
.tit-menu>li>a{display:flex;align-items:center;gap:6px;min-height:43px;padding:10px 13px;text-decoration:none;color:#fff;font-size:13px;font-weight:750;border-radius:8px;white-space:nowrap;border:1px solid transparent;transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}
.tit-menu>li:hover>a,.tit-menu>li:focus-within>a,.tit-menu>li.current-menu-item>a,.tit-menu>li.current-menu-ancestor>a{transform:translateY(-1px);background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.06));border-color:rgba(255,255,255,.12);box-shadow:0 6px 16px rgba(0,0,0,.14)}
.tit-menu__label{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.tit-nav__date{font-size:11px;color:#cbd5e1;white-space:nowrap;flex:0 0 auto;padding-left:12px}

/* Desktop Dropdown Mega-Panel */
@media(min-width:801px){
  .tit-menu>li.menu-item-has-children>a:after{content:"⌄";font-size:11px;opacity:.75;margin-left:auto}
  .tit-menu>li{position:static}
  .tit-menu>li>.tit-mega-panel{
    position:absolute;left:50%;top:calc(100% + 8px);transform:translate(-50%,6px) perspective(900px) rotateX(-2deg);width:min(1000px,calc(100vw - 40px));min-width:0;
    padding:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;
    border:1px solid rgba(148,163,184,.32);border-radius:18px;
    background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(248,250,252,.98));
    box-shadow:0 28px 70px rgba(15,23,42,.24),0 8px 18px rgba(37,99,235,.08),inset 0 1px rgba(255,255,255,.9);
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    opacity:0;visibility:hidden;pointer-events:none;z-index:9999;transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
  }
  .tit-menu>li>.tit-mega-panel:before{
    content:"Explore this section";grid-column:1/-1;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;color:#64748b;padding:0 2px 4px;
  }
  .tit-menu>li:hover>.tit-mega-panel,.tit-menu>li:focus-within>.tit-mega-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0) perspective(900px) rotateX(0)}
  .tit-menu>li>.tit-mega-panel>li{display:block;position:relative;min-width:0;padding:2px}
  .tit-menu>li>.tit-mega-panel>li>a{display:flex;align-items:center;min-height:52px;padding:12px 14px;color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:13px;box-shadow:0 4px 12px rgba(15,23,42,.045);font-size:13px;font-weight:850;line-height:1.3;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
  .tit-menu>li>.tit-mega-panel>li>a:before{content:"↗";display:grid;place-items:center;width:27px;height:27px;margin-right:9px;border-radius:8px;background:linear-gradient(135deg,#eff6ff,#ede9fe);color:#4f46e5;font-size:13px;flex:0 0 27px}
  .tit-menu>li>.tit-mega-panel>li:hover>a,.tit-menu>li>.tit-mega-panel>li:focus-within>a{transform:translateY(-3px) translateZ(8px);border-color:#bfdbfe;box-shadow:0 13px 25px rgba(15,23,42,.10);background:linear-gradient(180deg,#fff,#f8fbff)}
  .tit-menu>li>.tit-mega-panel>li>.sub-menu{position:static;display:block;min-width:0;margin:5px 0 0;padding:4px 4px 2px 43px;border:0;box-shadow:none;border-radius:0;background:transparent;opacity:1;visibility:visible;transform:none}
  .tit-menu>li>.tit-mega-panel>li>.sub-menu a{padding:5px 6px;color:#64748b;font-size:11px;font-weight:700;border-radius:6px}
  .tit-menu>li>.tit-mega-panel>li>.sub-menu a:hover{color:var(--tit-brand);background:#eff6ff}
  .tit-sub-toggle{display:none}
}

/* Tablet adjustments (801px - 1199px) */
@media(min-width:801px) and (max-width:1199px){
  .tit-nav__inner{justify-content:flex-start;gap:10px}
  .tit-nav__date{display:none}
  .tit-menu{width:100%;flex-wrap:wrap;overflow:visible;padding-bottom:2px}
  .tit-menu>li>a{padding-inline:10px;font-size:12px}
  .tit-menu>li>.tit-mega-panel{left:0;transform:translateY(6px) perspective(900px) rotateX(-2deg);width:min(880px,calc(100vw - 28px))}
  .tit-menu>li:hover>.tit-mega-panel,.tit-menu>li:focus-within>.tit-mega-panel{transform:translateY(0) perspective(900px) rotateX(0)}
}

/* Breadcrumbs & Layout */
.tit-home{padding:22px 0 60px}
.tit-breadcrumb-home,.tit-breadcrumbs{font-size:12px;color:var(--tit-muted);margin:0 0 18px}
.tit-breadcrumb-home{display:flex;gap:8px;align-items:center}
.tit-breadcrumbs ol{display:flex;gap:8px;list-style:none;padding:0;margin:0;flex-wrap:wrap;align-items:center}
.tit-breadcrumbs li:not(:last-child):after{content:"›";margin-left:8px;color:#98a2b3}
.tit-breadcrumbs a{text-decoration:none}
.tit-breadcrumbs a:hover{text-decoration:underline}

/* Hero Section */
.tit-hero{display:grid;grid-template-columns:1.45fr .85fr;background:#fff;border:1px solid var(--tit-line);border-radius:20px;overflow:hidden;box-shadow:var(--tit-shadow);margin-bottom:34px}
.tit-hero__image{min-height:390px;display:block;background:#e9eef6}
.tit-hero__image img{width:100%;height:100%;object-fit:cover;display:block}
.tit-hero__body{padding:42px;display:flex;flex-direction:column;justify-content:center}
.tit-eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:900;color:var(--tit-brand);display:block;margin-bottom:7px}
.tit-hero h1{font-size:clamp(28px,3.2vw,48px);line-height:1.08;letter-spacing:-.035em;margin:0 0 16px}
.tit-hero h1 a{text-decoration:none}
.tit-hero p{color:var(--tit-muted);font-size:16px;margin:0 0 18px}
.tit-meta{display:flex;gap:8px;align-items:center;color:#7a8493;font-size:12px}

.tit-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:max-content;margin-top:20px;padding:11px 17px;border-radius:10px;background:var(--tit-brand);color:#fff!important;text-decoration:none!important;font-weight:800;font-size:13px;box-shadow:0 9px 18px rgba(37,99,235,.20);transition:transform .18s ease,box-shadow .18s ease;border:none;cursor:pointer}
.tit-button:hover{transform:translateY(-2px);box-shadow:0 13px 25px rgba(37,99,235,.28)}
.tit-button--dark{background:var(--tit-ink);box-shadow:0 9px 18px rgba(17,24,39,.25)}
.tit-button--dark:hover{box-shadow:0 13px 25px rgba(17,24,39,.35)}

/* Grid & Content Columns */
.tit-home-layout,.tit-main{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:30px;align-items:start}
.tit-main{padding-top:30px;padding-bottom:60px}
.tit-content{min-width:0}
.tit-home-aside,.tit-single-side{align-self:start;min-width:0;display:flex;flex-direction:column;gap:0}
.tit-home-aside>.tit-sidebar,.tit-single-side>.tit-sidebar{position:sticky;top:16px}
.tit-sidebar{height:auto;min-height:0}
.tit-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:8px 0 18px}
.tit-section-head h2{font-size:25px;line-height:1.15;margin:0;letter-spacing:-.02em}
.tit-section-head>a{font-size:12px;color:var(--tit-brand);font-weight:800;text-decoration:none}
.tit-grid{display:grid;gap:18px}
.tit-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tit-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Post Cards */
.tit-card{background:var(--tit-card);border:1px solid var(--tit-line);border-radius:14px;overflow:hidden;box-shadow:0 5px 20px rgba(16,24,40,.035);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;transform-style:preserve-3d}
.tit-card:hover{transform:translateY(-3px);box-shadow:var(--tit-shadow);border-color:#d7def0}
.tit-card__media{display:block;position:relative;aspect-ratio:16/10;background:#e9eef6;overflow:hidden}
.tit-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.tit-card:hover .tit-card__media img{transform:scale(1.025)}
.tit-card__badge{position:absolute;left:11px;bottom:11px;background:#fff;color:var(--tit-ink);padding:5px 8px;border-radius:7px;font-size:10px;font-weight:900;box-shadow:0 3px 12px rgba(0,0,0,.12)}
.tit-card__placeholder{height:100%;display:grid;place-items:center;font-weight:900;color:#94a3b8;background:linear-gradient(135deg,#eef2ff,#e2e8f0)}
.tit-card__body{padding:16px}
.tit-card__title{font-size:18px;line-height:1.28;margin:7px 0 8px;letter-spacing:-.015em}
.tit-card__title a{text-decoration:none}
.tit-card__excerpt{font-size:13px;color:var(--tit-muted);line-height:1.55;margin:0}
.tit-card--compact .tit-card__title{font-size:16px}
.tit-card--compact .tit-card__body{padding:13px}

/* Widgets & Sidebar */
.tit-widget{background:#fff;border:1px solid var(--tit-line);border-radius:14px;padding:18px;margin-bottom:18px;box-shadow:0 5px 18px rgba(16,24,40,.03);height:auto;min-height:0;overflow:visible}
.tit-widget:empty,.tit-custom-widgets:empty{display:none!important}
.tit-widget h2{font-size:16px;margin:0 0 14px}
.tit-widget__head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.tit-widget__head h2{margin:0}
.tit-widget__head a{font-size:11px;color:var(--tit-brand);font-weight:800;text-decoration:none}
.tit-widget input[type=search]{width:100%;padding:11px 12px;border:1px solid var(--tit-line);border-radius:9px}

/* Sidebar Lists with Guaranteed 3-Column Grid */
.tit-side-list{list-style:none;padding:0;margin:0}
.tit-side-list li{display:grid;grid-template-columns:25px 66px 1fr;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--tit-line)}
.tit-side-list li:last-child{border-bottom:0}
.tit-side-list__num{font-size:11px;font-weight:900;color:#98a2b3}
.tit-side-list__img{width:66px;height:48px;border-radius:7px;overflow:hidden;background:#edf2f7;display:block}
.tit-side-list__img img{width:100%;height:100%;object-fit:cover;display:block}
.tit-side-list__placeholder{display:grid;place-items:center;font-size:11px;font-weight:900;color:#94a3b8;background:linear-gradient(135deg,#eef2ff,#e2e8f0);text-decoration:none}
.tit-side-list h3{font-size:12px;line-height:1.35;margin:0}
.tit-side-list h3 a{text-decoration:none}
.tit-side-list time{font-size:9px;color:#98a2b3}

.tit-popular-list{list-style:none;padding:0;margin:0}
.tit-popular-list li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;padding:10px 0;border-bottom:1px solid var(--tit-line)}
.tit-popular-list li:last-child{border-bottom:0}
.tit-popular-list__num{font-size:11px;font-weight:900;color:#98a2b3}
.tit-popular-list h3{font-size:12px;line-height:1.36;margin:0}
.tit-popular-list h3 a{text-decoration:none}
.tit-popular-list time{font-size:9px;color:#98a2b3}

.tit-topic-list ul{list-style:none;padding:0;margin:0}
.tit-topic-list li{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--tit-line);font-size:12px}
.tit-topic-list li a{text-decoration:none}
.tit-widget--newsletter{background:linear-gradient(135deg,#111827,#1e293b);color:#fff;border:0}
.tit-widget--newsletter p{color:#cbd5e1;font-size:13px;margin:0}
.tit-topic-section{margin-top:38px}

.tit-archive-head{padding:5px 0 24px}
.tit-archive-head h1{font-size:clamp(28px,4vw,42px);line-height:1.1;letter-spacing:-.03em;margin:0 0 8px}
.tit-archive-head p{margin:0;color:var(--tit-muted);max-width:720px}
.tit-empty{background:#fff;border:1px solid var(--tit-line);border-radius:16px;padding:40px;text-align:center}

/* Pagination Links */
.navigation.pagination{margin:34px 0 20px;display:flex;justify-content:center}
.navigation.pagination .nav-links{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 12px;border:1px solid var(--tit-line);background:#fff;border-radius:8px;color:var(--tit-ink);font-size:13px;font-weight:700;text-decoration:none;transition:all .18s ease}
.page-numbers:hover,.page-numbers:focus{background:#f1f5ff;border-color:#bfdbfe;color:var(--tit-brand)}
.page-numbers.current{background:var(--tit-brand);border-color:var(--tit-brand);color:#fff}
.page-numbers.dots{border:none;background:transparent}

/* Single Article Editorial Layout */
.tit-single-layout{grid-template-columns:minmax(0,1fr) 320px;gap:30px}.tit-single-content{min-width:0}
.tit-article{background:#fff;border:1px solid var(--tit-line);border-radius:18px;padding:34px;box-shadow:0 8px 25px rgba(16,24,40,.035);position:relative;z-index:2;min-width:0}
.tit-article__head{max-width:860px}
.tit-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:900;color:var(--tit-brand);text-decoration:none}
.tit-article__head h1{font-size:clamp(32px,4vw,56px);line-height:1.08;letter-spacing:-.035em;margin:9px 0 15px}
.tit-article__dek{font-size:18px;line-height:1.55;color:var(--tit-muted);margin:0 0 20px}
.tit-byline{display:flex;align-items:center;gap:10px;margin-bottom:25px}
.tit-avatar img{border-radius:50%;display:block}
.tit-byline strong,.tit-byline span{display:block}
.tit-byline strong{font-size:13px}
.tit-byline span{font-size:11px;color:#7a8493}
.tit-article__featured{margin:0 -34px 28px}
.tit-article__featured img{width:100%;height:auto;display:block;max-height:620px;object-fit:cover}
.tit-article__featured figcaption{font-size:11px;color:#7a8493;padding:8px 34px}

/* Article Body Typography & Element Styling */
.tit-article__body{font-size:17px;line-height:1.82;color:#273244;max-width:790px;margin-inline:auto;overflow-wrap:anywhere;word-break:normal}
.tit-article__body>*{max-width:100%}
.tit-article__body h2{font-size:28px;line-height:1.2;letter-spacing:-.02em;margin:38px 0 13px;color:var(--tit-ink)}
.tit-article__body h3{font-size:22px;line-height:1.25;margin:28px 0 10px;color:var(--tit-ink)}
.tit-article__body p{margin:0 0 18px}
.tit-article__body ul,.tit-article__body ol{margin:0 0 18px 24px;padding:0}
.tit-article__body li{margin-bottom:8px}
.tit-article__body blockquote{border-left:4px solid var(--tit-brand);margin:24px 0;padding:12px 20px;background:#f8fafc;border-radius:0 10px 10px 0;font-style:italic;color:#475569}
.tit-article__body img{max-width:100%;height:auto;border-radius:10px}
.tit-article__body table{display:block;overflow:auto;max-width:100%;border-collapse:collapse;margin:20px 0}
.tit-article__body th,.tit-article__body td{border:1px solid var(--tit-line);padding:9px 11px;white-space:nowrap}
.tit-article__body pre{background:#0f172a;color:#f8fafc;padding:16px;border-radius:10px;overflow-x:auto;font-size:14px;line-height:1.5}
.tit-article__body code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;background:#f1f5f9;padding:2px 6px;border-radius:5px;font-size:.9em}
.tit-article__body pre code{background:transparent;padding:0}

/* Anchor Target Scroll Offset */
h2[id],h3[id]{scroll-margin-top:36px}

/* Table of Contents */
.tit-toc{background:#f7f9fc;border:1px solid var(--tit-line);border-left:4px solid var(--tit-brand);border-radius:10px;padding:16px 18px;margin:20px 0 28px;font-size:14px;line-height:1.55}
.tit-toc__title{font-weight:900;margin-bottom:7px;color:var(--tit-ink)}
.tit-toc ol{margin:0;padding-left:19px}
.tit-toc li{margin:5px 0}
.tit-toc li.level-3{margin-left:12px;font-size:13px}
.tit-toc a{text-decoration:none;color:#334155}
.tit-toc a:hover{text-decoration:underline;color:var(--tit-brand)}

/* Tags Cloud */
.tit-article__tags{margin:24px 0;padding-top:18px;border-top:1px solid var(--tit-line)}
.tit-tag-cloud{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.tit-tag-cloud a{background:#f1f5f9;color:#475569;padding:5px 11px;border-radius:6px;font-size:12px;font-weight:600;text-decoration:none;transition:background .18s ease,color .18s ease}
.tit-tag-cloud a:hover{background:#e2e8f0;color:var(--tit-ink)}

/* Social Sharing */
.tit-share{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:28px auto;max-width:790px;padding-top:20px;border-top:1px solid var(--tit-line)}
.tit-share>span{font-size:12px;font-weight:900;margin-right:3px}
.tit-share a,.tit-copy{border:1px solid var(--tit-line);border-radius:8px;padding:7px 11px;text-decoration:none;font-size:11px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center}
.tit-share .is-wa{background:#25d366;color:#fff!important;border-color:#25d366}
.tit-share .is-tg{background:#0088cc;color:#fff!important;border-color:#0088cc}
.tit-share .is-fb{background:#1877f2;color:#fff!important;border-color:#1877f2}
.tit-share .is-tw{background:#000;color:#fff!important;border-color:#000}
.tit-copy{background:#fff;color:var(--tit-ink)}

/* Author Box */
.tit-author-card{max-width:790px;margin:30px auto 0;padding:20px;background:#f7f9fc;border:1px solid var(--tit-line);border-radius:14px;display:flex;gap:15px;align-items:flex-start}
.tit-author-card h2{font-size:19px;margin:0 0 5px}
.tit-author-card p{font-size:12px;color:var(--tit-muted);margin:0}

/* Previous / Next Post Navigation */
.post-navigation{margin:32px 0;border-top:1px solid var(--tit-line);border-bottom:1px solid var(--tit-line);padding:20px 0}
.post-navigation .nav-links{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.post-navigation .nav-previous,.post-navigation .nav-next{min-width:0}
.post-navigation .nav-next{text-align:right}
.post-navigation a{text-decoration:none;display:flex;flex-direction:column;gap:4px}
.tit-nav-meta{font-size:11px;text-transform:uppercase;font-weight:800;color:var(--tit-muted);letter-spacing:.08em}
.tit-nav-title{font-size:14px;font-weight:700;color:var(--tit-ink);line-height:1.35;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.post-navigation a:hover .tit-nav-title{color:var(--tit-brand)}

/* Related Stories */
.tit-related{margin:42px 0 0}
.tit-related__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tit-related .tit-card__excerpt{display:none}
.tit-related .tit-card__media{aspect-ratio:16/10}

/* Comments Section */
.tit-comments-area{margin-top:40px;padding-top:30px;border-top:1px solid var(--tit-line)}
.tit-comments-title{font-size:22px;margin-bottom:24px}
.tit-comment-list{list-style:none;padding:0;margin:0 0 30px}
.tit-comment-list .comment{padding:18px 0;border-bottom:1px solid var(--tit-line)}
.tit-comment-list .comment-body{display:grid;grid-template-columns:48px 1fr;gap:14px}
.tit-comment-list .comment-author .avatar{border-radius:50%;width:48px;height:48px;display:block}
.tit-comment-list .comment-meta{font-size:12px;color:var(--tit-muted);margin-bottom:6px}
.tit-comment-list .comment-content{font-size:15px;line-height:1.6;color:#334155}
.tit-comment-list .reply a{font-size:12px;font-weight:700;color:var(--tit-brand);text-decoration:none}
.tit-comment-list .children{list-style:none;padding-left:30px;margin-top:14px}
.comment-respond{background:#f8fafc;border:1px solid var(--tit-line);border-radius:14px;padding:24px;margin-top:28px}
.comment-respond .comment-reply-title{font-size:18px;margin:0 0 14px}
.comment-form p{margin-bottom:14px}
.comment-form label{display:block;font-size:12px;font-weight:700;margin-bottom:5px;color:var(--tit-ink)}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;padding:10px 12px;border:1px solid var(--tit-line);border-radius:8px;font-family:inherit;font-size:14px}
.comment-form textarea{min-height:110px;resize:vertical}

/* Error 404 Page */
.tit-error{padding:100px 20px;text-align:center}
.tit-error__code{font-size:80px;line-height:1;font-weight:900;color:#cbd5e1}
.tit-error h1{font-size:40px;margin:10px 0}
.tit-error p{max-width:600px;margin:0 auto;color:var(--tit-muted)}
.tit-error .search-form{max-width:480px;margin:25px auto}

/* Footer Section */
.tit-footer{background:#111827;color:#d1d5db;margin-top:40px}
.tit-footer__grid{padding:45px 0;display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
.tit-footer h2{font-size:13px;color:#fff;text-transform:uppercase;letter-spacing:.08em}
.tit-footer p{max-width:430px;color:#9ca3af;font-size:13px}
.tit-footer__brand{font-size:22px;font-weight:900;color:#fff;text-decoration:none}
.tit-footer ul{list-style:none;padding:0;margin:0}
.tit-footer li{margin:7px 0;font-size:13px}
.tit-footer a{color:inherit;text-decoration:none}
.tit-footer a:hover{color:#fff}
.tit-footer__bottom{border-top:1px solid rgba(255,255,255,.08)}
.tit-footer__bottom .tit-shell{min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:11px;color:#8b95a5}

/* Back to Top Button */
.tit-back-top{position:fixed;bottom:24px;right:24px;z-index:999;width:44px;height:44px;border-radius:50%;background:var(--tit-ink);color:#fff;border:none;box-shadow:0 6px 18px rgba(0,0,0,.2);cursor:pointer;display:grid;place-items:center;font-size:18px;font-weight:900;transition:transform .18s ease,background .18s ease}
.tit-back-top:hover{transform:translateY(-3px);background:var(--tit-brand)}

/* Ad & Reading Column Containment */
.tit-article,.tit-single-side{position:relative;z-index:3}
.tit-article__body iframe,.tit-article__body ins,.tit-article__body .adsbygoogle{max-width:100%!important;overflow:hidden}

/* Desktop Reading Rail Safety */
@media(min-width:1200px){
  .tit-main.tit-single-layout{width:min(var(--tit-shell),calc(100% - 40px));margin-inline:auto;grid-template-columns:minmax(0,1fr) 320px;gap:30px}
}
@media(min-width:1500px){
  .tit-main.tit-single-layout{width:min(var(--tit-shell),calc(100% - 40px))}
}

/* Tablet Breakpoint (1100px) */
@media(max-width:1100px){
  .tit-home-layout,.tit-main{grid-template-columns:minmax(0,1fr) 290px}
  .tit-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tit-related__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tit-hero__body{padding:30px}
  .tit-hero__image{min-height:340px}
}

/* Mobile Breakpoint (800px) — Clean Accordion Without Duplicate Icons */
@media(max-width:800px){
  body.tit-menu-open{overflow:hidden}
  .tit-shell{width:min(100% - 28px,720px)}
  .tit-header__inner{min-height:68px}
  .tit-menu-toggle{display:inline-flex}

  /* Mobile Navigation Drawer */
  .tit-nav{display:none;border-top:1px solid rgba(255,255,255,.07)}
  .tit-nav.is-open{display:block;max-height:calc(100vh - 68px);overflow:auto;box-shadow:0 20px 35px rgba(15,23,42,.22)}
  .tit-nav__inner{display:block;width:100%}
  .tit-nav__main{width:100%}
  .tit-nav__date{display:none}

  /* Menu Items & Clean Grid */
  .tit-menu{display:block;width:100%;max-width:none;padding:8px 0;overflow:visible}
  .tit-menu>li{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;border-bottom:1px solid rgba(255,255,255,.07);position:relative}
  .tit-menu>li>a{grid-column:1;padding:12px 8px;border-radius:7px}

  /* Crucial: HIDE the desktop plus pseudo-element on mobile to avoid double plus icon! */
  .tit-menu>li.menu-item-has-children>a:after{display:none!important;content:none!important}

  /* Mobile Accordion Sub-Toggle Button */
  .tit-sub-toggle{
    grid-column:2;
    grid-row:1;
    width:38px;
    height:38px;
    margin-left:auto;
    border:1px solid rgba(255,255,255,.13);
    border-radius:10px;
    background:rgba(255,255,255,.05);
    color:#fff;
    display:grid;
    place-items:center;
    cursor:pointer;
    font-size:19px;
    line-height:1;
    transition:background .18s ease,transform .18s ease;
  }
  .tit-sub-toggle:hover{background:rgba(255,255,255,.11)}
  .tit-sub-toggle span{display:inline-block;transition:transform .2s ease;font-weight:700;line-height:1}
  .tit-menu .menu-item-has-children.is-sub-open>.tit-sub-toggle span{transform:rotate(45deg)}

  /* Mobile Submenu & Mega-Panel Dropdown */
  .tit-menu .menu-item-has-children>.sub-menu,
  .tit-menu>li>.tit-mega-panel{
    grid-column:1/-1;
    position:static;
    width:auto;
    min-width:0;
    display:none;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:none!important;
    box-shadow:none;
    border:0;
    border-radius:0;
    background:rgba(255,255,255,.035);
    margin:0 0 8px;
    padding:7px 8px 7px 14px;
  }
  .tit-menu .menu-item-has-children.is-sub-open>.sub-menu,
  .tit-menu>li.is-sub-open>.tit-mega-panel{display:block!important}
  .tit-menu>li>.tit-mega-panel:before{display:none}
  .tit-menu>li>.tit-mega-panel>li{display:block;border-bottom:1px solid rgba(255,255,255,.06);padding:0}
  .tit-menu>li>.tit-mega-panel>li:last-child{border-bottom:0}
  .tit-menu>li>.tit-mega-panel>li>a{display:block;color:#fff;background:transparent;border:0;box-shadow:none;padding:10px 7px;font-size:13px;border-radius:7px}
  .tit-menu>li>.tit-mega-panel>li>a:before{display:none}
  .tit-menu>li>.tit-mega-panel>li>a:hover{background:rgba(255,255,255,.08);transform:none;color:#fff}
  .tit-menu>li>.tit-mega-panel>li>.sub-menu{display:block;position:static;margin:0;padding:0 0 6px 13px;background:transparent}
  .tit-menu>li>.tit-mega-panel>li>.sub-menu a{color:#cbd5e1;padding:7px;font-size:12px}

  /* Mobile Content & Single Layout */
  .tit-hero{grid-template-columns:1fr}
  .tit-hero__image{min-height:240px}
  .tit-hero__body{padding:24px}
  .tit-home-layout,.tit-main,.tit-single-layout{grid-template-columns:1fr}
  .tit-home-aside>.tit-sidebar,.tit-single-side>.tit-sidebar{position:static}
  .tit-grid--2,.tit-grid--3{grid-template-columns:1fr}
  .tit-article{padding:22px}
  .tit-article__featured{margin:0 -22px 24px}
  .tit-article__featured figcaption{padding-inline:22px}
  .tit-article__body{font-size:16px;line-height:1.75}
  .tit-article__body h2{font-size:24px}
  .tit-article__head h1{font-size:34px}
  .tit-footer__grid{grid-template-columns:1fr 1fr;gap:25px}
  .tit-footer__grid>div:first-child{grid-column:1/-1}
  .tit-footer__bottom .tit-shell{flex-direction:column;justify-content:center;align-items:flex-start;padding:12px 0}
  .tit-related__grid{grid-template-columns:1fr 1fr}
  .post-navigation .nav-links{grid-template-columns:1fr;gap:14px}
  .post-navigation .nav-next{text-align:left}
}

/* Small Smartphone Breakpoint (520px) */
@media(max-width:520px){
  .tit-shell{width:calc(100% - 22px)}
  .tit-brand strong{font-size:inherit}
  .tit-brand small{font-size:inherit}
  .tit-header__tools{gap:6px}
  .tit-search-toggle,.tit-menu-toggle{padding:8px 9px}
  .tit-home{padding-top:14px}
  .tit-hero h1{font-size:28px}
  .tit-hero p{font-size:14px}
  .tit-card__title{font-size:17px}
  .tit-card__excerpt{font-size:12px}
  .tit-archive-head h1{font-size:30px}
  .tit-article__head h1{font-size:30px}
  .tit-article__dek{font-size:16px}
  .tit-article{border-radius:13px;padding:18px}
  .tit-article__featured{margin-inline:-18px}
  .tit-article__featured figcaption{padding-inline:18px}
  .tit-related__grid{grid-template-columns:1fr}
  .tit-footer__grid{grid-template-columns:1fr}
  .tit-footer__grid>div:first-child{grid-column:auto}
  .tit-section-head{align-items:flex-start}
  .tit-section-head h2{font-size:21px}
  .tit-side-list li{grid-template-columns:22px 60px 1fr}
  .tit-side-list__img{width:60px;height:44px}
  .tit-back-top{bottom:16px;right:16px;width:38px;height:38px;font-size:16px}
}

/* Reduced Motion Accessibility */
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* =========================================================
   Google AdSense & Responsive Ad Units
   ========================================================= */
.tit-ad-slot{margin:22px auto;text-align:center;clear:both;overflow:hidden;max-width:100%}
.tit-ad-label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#94a3b8;margin-bottom:5px;font-weight:700}
.tit-ad-content{display:flex;justify-content:center;align-items:center;min-height:50px;max-width:100%;overflow-x:auto}
.tit-ad-slot--header{margin:14px auto 20px;padding:0;max-width:min(var(--tit-shell),calc(100% - 40px))}
.tit-ad-slot--single-middle,.tit-ad-slot--single-before,.tit-ad-slot--single-after{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:12px;margin:28px auto;max-width:790px}
.tit-ad-slot--widget{margin:0}
.tit-ad-slot--sidebar-bottom{position:sticky;top:20px;z-index:10;margin-top:18px}
ins.adsbygoogle{display:block!important;margin:0 auto;max-width:100%!important}

/* =========================================================
   Trending Topics Chip Bar
   ========================================================= */
.tit-trending-bar{display:flex;align-items:center;gap:12px;padding:10px 16px;background:#fff;border:1px solid var(--tit-line);border-radius:12px;margin-bottom:22px;overflow-x:auto;scrollbar-width:none}
.tit-trending-bar::-webkit-scrollbar{display:none}
.tit-trending-badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:900;color:#ef4444;white-space:nowrap;flex-shrink:0}
.tit-trending-chips{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}
.tit-chip{display:inline-block;padding:5px 12px;border-radius:20px;background:#f1f5f9;color:#334155;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap;transition:all .18s ease}
.tit-chip:hover{background:#e0e7ff;color:var(--tit-brand);transform:translateY(-1px)}

/* =========================================================
   Redesigned Magazine Hero Showcase (1 Lead + 2 Highlights)
   ========================================================= */
.tit-hero-showcase{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;margin-bottom:30px}
.tit-hero-lead{background:#fff;border:1px solid var(--tit-line);border-radius:18px;overflow:hidden;box-shadow:var(--tit-shadow);display:flex;flex-direction:column}
.tit-hero-lead__image{display:block;position:relative;aspect-ratio:16/9;background:#e9eef6;overflow:hidden}
.tit-hero-lead__image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.tit-hero-lead:hover .tit-hero-lead__image img{transform:scale(1.025)}
.tit-hero-lead__body{padding:26px;display:flex;flex-direction:column;flex:1;justify-content:center}
.tit-hero-lead h1{font-size:clamp(22px,2.5vw,36px);line-height:1.15;letter-spacing:-.03em;margin:6px 0 12px}
.tit-hero-lead h1 a{text-decoration:none}
.tit-hero-lead p{color:var(--tit-muted);font-size:15px;margin:0 0 16px;line-height:1.55}

.tit-hero-side{display:flex;flex-direction:column;gap:16px}
.tit-hero-sub{background:#fff;border:1px solid var(--tit-line);border-radius:16px;overflow:hidden;box-shadow:0 4px 16px rgba(16,24,40,.04);display:grid;grid-template-columns:140px 1fr;gap:14px;flex:1;align-items:center;transition:transform .2s ease,box-shadow .2s ease}
.tit-hero-sub:hover{transform:translateY(-2px);box-shadow:var(--tit-shadow)}
.tit-hero-sub__image{display:block;position:relative;width:140px;height:100%;min-height:120px;background:#e9eef6;overflow:hidden}
.tit-hero-sub__image img{width:100%;height:100%;object-fit:cover;display:block}
.tit-hero-sub__body{padding:14px 16px 14px 0}
.tit-hero-sub h2{font-size:15px;line-height:1.35;margin:6px 0 0;letter-spacing:-.015em}
.tit-hero-sub h2 a{text-decoration:none}

@media(max-width:900px){
  .tit-hero-showcase{grid-template-columns:1fr}
  .tit-hero-sub{grid-template-columns:120px 1fr}
}
@media(max-width:520px){
  .tit-hero-sub{grid-template-columns:1fr}
  .tit-hero-sub__image{width:100%;aspect-ratio:16/9;min-height:0}
  .tit-hero-sub__body{padding:14px}
}

/* =========================================================
   Polished Responsive Tables for Technical/Scheme Posts
   ========================================================= */
.tit-article__body table{width:100%;border-collapse:separate;border-spacing:0;margin:24px 0;border:1px solid var(--tit-line);border-radius:10px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.02)}
.tit-article__body thead th{background:#f1f5f9;color:var(--tit-ink);font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.04em;padding:12px 14px;border-bottom:2px solid var(--tit-line)}
.tit-article__body tbody tr:nth-child(even){background:#f8fafc}
.tit-article__body tbody tr:hover{background:#f1f5ff}
.tit-article__body td{padding:11px 14px;border-bottom:1px solid var(--tit-line);font-size:14px;line-height:1.5}
.tit-article__body tr:last-child td{border-bottom:0}

/* =========================================================
   Bulletproof Full-Width & Centered Single Post Architecture
   Guarantees centered reading column across all categories & screens
   ========================================================= */
body.tit-site-body {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.tit-header,
.tit-nav {
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
  float: none !important;
  box-sizing: border-box !important;
}

.tit-shell {
  width: min(var(--tit-shell), calc(100% - 40px)) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

/* Universal 2-Column Grid on Desktop / Laptop */
.tit-main.tit-single-layout {
  width: min(var(--tit-shell), calc(100% - 40px)) !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 32px !important;
  align-items: start !important;
  box-sizing: border-box !important;
  float: none !important;
  clear: both !important;
}

.tit-single-content {
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.tit-article {
  background: #fff;
  border: 1px solid var(--tit-line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 8px 25px rgba(16,24,40,.035);
  position: relative;
  z-index: 2;
  width: 100% !important;
  box-sizing: border-box !important;
}

.tit-article__head {
  width: 100% !important;
  max-width: 860px;
}

.tit-article__body {
  font-size: 17px;
  line-height: 1.82;
  color: #273244;
  width: 100% !important;
  max-width: 820px;
  overflow-wrap: anywhere;
  word-break: normal;
  box-sizing: border-box !important;
}

.tit-single-side {
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  box-sizing: border-box !important;
  align-self: start;
}

.tit-single-side > .tit-sidebar {
  position: sticky !important;
  top: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Intermediate Laptop Screen Breakpoint (801px - 1100px) */
@media (max-width: 1100px) and (min-width: 801px) {
  .tit-main.tit-single-layout {
    grid-template-columns: minmax(0, 1fr) 290px !important;
    gap: 24px !important;
    width: min(var(--tit-shell), calc(100% - 32px)) !important;
  }
  .tit-single-side {
    width: 290px !important;
    min-width: 290px !important;
    max-width: 290px !important;
  }
}

/* Mobile Screen Breakpoint (<= 800px) */
@media (max-width: 800px) {
  .tit-main.tit-single-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: min(var(--tit-shell), calc(100% - 24px)) !important;
  }
  .tit-single-side {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    position: static !important;
  }
  .tit-article {
    padding: 20px 18px !important;
  }
}
