/*
Theme Name: ToolsGuru Premium
Theme URI: https://example.com/
Author: ToolsGuru
Description: Premium responsive WordPress theme for an all-in-one online utilities portal.
Version: 4.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: toolsguru
*/
:root{--ink:#152044;--muted:#71809b;--primary:#6157ee;--border:#e9eaf5;--bg:#f7f8fd}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:white}a{text-decoration:none;color:inherit}.wrap{max-width:1190px;margin:auto;padding:0 24px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-weight:850;font-size:25px;letter-spacing:-1.1px}.brand b{color:var(--primary)}.nav{display:flex;align-items:center;gap:30px;font-size:14px;font-weight:650}.nav a:hover{color:var(--primary)}.navcta{background:#171d43;color:#fff;padding:12px 19px;border-radius:12px}.hero{background:radial-gradient(circle at 80% 5%,#e6e4ff,transparent 33%),linear-gradient(180deg,#f7f7ff,#fff);text-align:center;padding:86px 20px 80px}.eyebrow{display:inline-flex;background:#eceaff;color:#5c4ddd;border:1px solid #dcd9ff;border-radius:40px;padding:9px 16px;font-size:12px;font-weight:750}.hero h1{font-size:clamp(37px,5.5vw,65px);letter-spacing:-2.8px;line-height:1.13;margin:22px auto 16px;max-width:850px}.hero h1 em{font-style:normal;color:var(--primary)}.hero p{color:#64728d;font-size:17px;line-height:1.8;max-width:650px;margin:0 auto 28px}.searchbox{display:flex;align-items:center;gap:12px;max-width:680px;background:#fff;margin:auto;border:1px solid #e4e3f4;border-radius:16px;padding:9px 9px 9px 20px;box-shadow:0 18px 55px #4a4b9a1c}.searchbox input{flex:1;min-width:0;border:0;outline:0;font-size:15px}.searchbox button,.primary{background:var(--primary);color:white;border:0;border-radius:11px;padding:14px 25px;font-weight:750;cursor:pointer}.popular{margin-top:20px;color:#79839b;font-size:13px}.popular a{display:inline-block;margin:5px;background:#fff;border:1px solid #e7e7f5;border-radius:30px;padding:7px 12px;color:#525f80}.stats{display:flex;justify-content:center;gap:48px;margin-top:37px;color:#76819a;font-size:13px}.stats strong{color:#1b2650}.section{padding:64px 0}.section.alt{background:#fafbff}.sectionhead{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px;gap:20px}.kicker{color:var(--primary);text-transform:uppercase;font-weight:850;font-size:12px;letter-spacing:1.5px}.section h2{font-size:32px;letter-spacing:-1.2px;margin:9px 0}.sectionhead p{color:var(--muted);margin:0}.seeall{color:var(--primary);font-weight:750;font-size:14px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.toolcard{display:block;padding:24px;background:white;border:1px solid var(--border);border-radius:17px;transition:.2s;min-height:172px}.toolcard:hover{transform:translateY(-4px);box-shadow:0 18px 35px #1b205016;border-color:#cbc8ff}.toolcard .ico,.catcard .ico{display:inline-flex;width:46px;height:46px;border-radius:13px;align-items:center;justify-content:center;background:#f0efff;color:var(--primary);font-size:23px}.toolcard h3{font-size:17px;margin:17px 0 7px}.toolcard p,.catcard p{color:var(--muted);font-size:13px;line-height:1.6;margin:0}.catgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.catcard{border:1px solid var(--border);border-radius:16px;padding:24px;background:white}.catcard h3{font-size:16px;margin:15px 0 5px}.banner{background:#1b214f;color:#fff;border-radius:23px;padding:44px;display:flex;align-items:center;justify-content:space-between;gap:24px}.banner h2{margin:0 0 10px;color:white}.banner p{margin:0;color:#c4c8df}.banner .primary{background:#fff;color:#3330a6}.footer{background:#111832;color:#c4c9dc;padding:52px 0 22px}.footgrid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:50px}.footer h4{color:#fff}.footer a{display:block;margin:10px 0;font-size:14px}.footer .brand{color:white}.copyright{border-top:1px solid #2b3350;margin-top:35px;padding-top:22px;font-size:13px;text-align:center}.workarea{max-width:850px;margin:0 auto 80px;border:1px solid var(--border);padding:30px;border-radius:20px;box-shadow:0 10px 35px #1b20500b}.workarea textarea,.workarea input,.workarea select{width:100%;border:1px solid #dfe2ef;border-radius:12px;padding:14px;font:inherit;margin:10px 0;outline-color:var(--primary)}.workarea textarea{min-height:150px;resize:vertical}.result{background:#f7f8ff;padding:18px;border-radius:12px;margin-top:14px;white-space:pre-wrap;overflow-wrap:anywhere}.single{max-width:850px;margin:60px auto;padding:0 24px;line-height:1.8}.single h1{font-size:40px;line-height:1.2}.single img{max-width:100%;height:auto}.hide{display:none!important}@media(max-width:800px){.nav{gap:12px}.nav a:not(.navcta){display:none}.grid{grid-template-columns:repeat(2,1fr)}.catgrid{grid-template-columns:repeat(2,1fr)}.hero{padding:65px 20px}.stats{gap:15px;flex-wrap:wrap}.footgrid{grid-template-columns:1fr 1fr}.footgrid>div:first-child{grid-column:span 2}}@media(max-width:530px){.grid,.catgrid{grid-template-columns:1fr}.hero h1{letter-spacing:-1.7px}.searchbox button{padding:13px}.section{padding:44px 0}.sectionhead{align-items:start}.banner{padding:28px;display:block}.banner .primary{display:inline-block;margin-top:20px}.footgrid{gap:18px}.topbar{height:67px}}

.single p,.single li{color:#46536d}.single h2{margin-top:32px;font-size:25px}.single a{color:#5147d7;text-decoration:underline}.footer a:hover{color:#fff}

/* Premium category explorer */
.tg-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-top:25px}
.tg-category-card{min-height:154px;background:#fff;border:1px solid #dfe8f6;border-radius:17px;padding:20px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 6px 22px rgba(23,45,85,.025);transition:transform .2s,border-color .2s,box-shadow .2s}
.tg-category-card:hover{transform:translateY(-3px);border-color:#b8cdf6;box-shadow:0 12px 28px rgba(23,45,85,.075)}
.tg-category-head{display:flex;gap:13px;align-items:flex-start}.tg-category-head h3{font-size:15px;margin:1px 0 7px;color:#09214a}.tg-category-head p{font-size:12px;line-height:1.65;margin:0;color:#64748b}.tg-category-icon{width:46px;height:46px;flex:0 0 46px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:linear-gradient(135deg,#1f9bff,#1164eb);color:#fff;font-size:23px;font-weight:700}
.tg-category-card:nth-child(5n+1) .tg-category-icon{background:linear-gradient(135deg,#ff526c,#ff1745)}.tg-category-card:nth-child(5n+3) .tg-category-icon{background:linear-gradient(135deg,#b65dff,#7035e8)}.tg-category-card:nth-child(5n+4) .tg-category-icon{background:linear-gradient(135deg,#00d8a2,#00ac86)}.tg-category-card:nth-child(5n+5) .tg-category-icon{background:linear-gradient(135deg,#ffb33f,#ff8200)}
.tg-category-bottom{margin-top:18px}.tg-category-link,.tg-category-pending{font-size:12px;font-weight:700;border-radius:99px;padding:8px 12px;display:inline-flex;background:#eef4ff;color:#0865ec;text-decoration:none}.tg-category-pending{background:#f2f5f9;color:#718096}
@media(max-width:1000px){.tg-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.tg-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tg-category-card{padding:14px}.tg-category-head{gap:9px}.tg-category-icon{width:38px;height:38px;flex-basis:38px;font-size:19px}}@media(max-width:430px){.tg-category-grid{grid-template-columns:1fr}}

/* v1.3 category layout: resilient against plugin CSS and browser caches */
#categories .tg-category-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important;width:100%!important}
#categories .tg-category-card{display:flex!important;flex-direction:column!important;justify-content:space-between!important;min-width:0!important;min-height:155px!important;padding:20px!important;background:#fff!important;border:1px solid #e0e8f5!important;border-radius:17px!important;box-shadow:0 5px 18px rgba(12,39,84,.035)!important}
#categories .tg-category-head{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:12px!important}
#categories .tg-category-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:48px!important;height:48px!important;flex:0 0 48px!important;border-radius:12px!important;color:#fff!important;font-size:23px!important;line-height:1!important}
#categories .tg-category-head h3{font-size:15px!important;line-height:1.35!important;margin:0 0 7px!important;font-weight:750!important}
#categories .tg-category-head p{font-size:12px!important;line-height:1.6!important;margin:0!important}
#categories .tg-category-bottom{margin-top:20px!important}
#categories .tg-category-link,#categories .tg-category-pending{display:inline-flex!important;align-items:center!important;padding:8px 12px!important;border-radius:40px!important;font-size:12px!important}
#categories .tg-category-card:nth-child(1) .tg-category-icon{background:linear-gradient(135deg,#ff4b62,#f40040)!important}
#categories .tg-category-card:nth-child(2) .tg-category-icon{background:linear-gradient(135deg,#00b9ff,#0677f5)!important}
#categories .tg-category-card:nth-child(3) .tg-category-icon{background:linear-gradient(135deg,#b76bff,#7538e8)!important}
#categories .tg-category-card:nth-child(4) .tg-category-icon{background:linear-gradient(135deg,#00dba5,#00b58a)!important}
#categories .tg-category-card:nth-child(5) .tg-category-icon{background:linear-gradient(135deg,#ffba3e,#ff8509)!important}
#categories .tg-category-card:nth-child(6) .tg-category-icon{background:linear-gradient(135deg,#ff658e,#ff1463)!important}
#categories .tg-category-card:nth-child(7) .tg-category-icon{background:linear-gradient(135deg,#06c6d1,#00a7ae)!important}
#categories .tg-category-card:nth-child(8) .tg-category-icon{background:linear-gradient(135deg,#ffb13b,#ff8200)!important}
#categories .tg-category-card:nth-child(9) .tg-category-icon{background:linear-gradient(135deg,#7898ba,#375778)!important}
@media(max-width:1000px){#categories .tg-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){#categories .tg-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){#categories .tg-category-grid{grid-template-columns:1fr!important}}

/* Unified ToolsGuru v2 design system */
#tg-tool-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
#tg-tool-grid .toolcard{min-width:0;min-height:182px;padding:20px;border:1px solid #e0e8f5;border-radius:17px;box-shadow:0 5px 18px rgba(12,39,84,.035)}
#tg-tool-grid .toolcard .ico{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:12px;font-size:22px;font-weight:750;background:linear-gradient(135deg,#7c6aff,#5444db);color:#fff}
#tg-tool-grid .toolcard h3{font-size:15px;margin:14px 0 7px;line-height:1.4;color:#09214a}
#tg-tool-grid .toolcard p{font-size:12px;line-height:1.6}
#tg-tool-grid .toolcard .ico[data-color="Image Tools"]{background:linear-gradient(135deg,#00b9ff,#0677f5)}
#tg-tool-grid .toolcard .ico[data-color="Calculator Tools"]{background:linear-gradient(135deg,#ffba3e,#ff8509)}
#tg-tool-grid .toolcard .ico[data-color="Text Tools"]{background:linear-gradient(135deg,#06c6d1,#00a7ae)}
#tg-tool-grid .toolcard .ico[data-color="Generator Tools"]{background:linear-gradient(135deg,#ff658e,#ff1463)}
#tg-tool-grid .toolcard .ico[data-color="Developer Tools"]{background:linear-gradient(135deg,#7898ba,#375778)}
#categories .tg-category-card:nth-child(1) .tg-category-icon{background:linear-gradient(135deg,#00b9ff,#0677f5)!important}
#categories .tg-category-card:nth-child(2) .tg-category-icon{background:linear-gradient(135deg,#ffba3e,#ff8509)!important}
#categories .tg-category-card:nth-child(3) .tg-category-icon{background:linear-gradient(135deg,#06c6d1,#00a7ae)!important}
#categories .tg-category-card:nth-child(4) .tg-category-icon{background:linear-gradient(135deg,#ff658e,#ff1463)!important}
#categories .tg-category-card:nth-child(5) .tg-category-icon{background:linear-gradient(135deg,#7898ba,#375778)!important}
.tg-actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}.tg-utility-btn{border:1px solid #dce2f0;border-radius:9px;background:#fff;color:#243454;padding:9px 14px;cursor:pointer;font-weight:650}.tg-utility-btn:hover{background:#eff1ff}.workarea label{display:block;font-weight:650;margin:10px 0}.workarea label input[type="checkbox"]{width:auto;margin-right:8px}.workarea button.primary{margin:8px 0}.workarea .result{min-height:58px;line-height:1.6}.workarea input[type="file"]{padding:10px;background:#f7f9ff}.tg-image-preview{max-width:100%;max-height:350px;display:block;margin:15px auto;border-radius:12px}.tg-download{display:inline-block;background:#6157ee;color:#fff;padding:12px 18px;border-radius:10px;margin:10px 0;font-weight:700}.tg-help{font-size:13px;color:#66738c}.tg-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(max-width:1000px){#tg-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){#tg-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){#tg-tool-grid{grid-template-columns:1fr}.tg-field-grid{grid-template-columns:1fr}}

.tg-download{display:inline-block;background:#6157ee;color:#fff;padding:12px 18px;border-radius:11px;margin:8px 10px 4px 0;font-weight:700}.tg-help{font-size:13px;line-height:1.65;color:#61708c}.workarea label{display:block;font-weight:650;margin:12px 0}.workarea button:disabled{opacity:.55;cursor:wait}#tg-tool-output{max-height:600px;overflow:auto}#tg-tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}#tg-tool-grid .toolcard .ico[data-color="PDF Tools"]{background:linear-gradient(135deg,#ff4a6c,#ed0044)}@media(max-width:950px){#tg-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){#tg-tool-grid{grid-template-columns:1fr}}

/* v3.1: varied premium icon palette for every individual tool; overrides category-only red icons */
#tg-tool-grid .toolcard{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
#tg-tool-grid .toolcard:hover{transform:translateY(-5px);border-color:#c6d6f6;box-shadow:0 16px 35px rgba(28,50,110,.10)}
#tg-tool-grid .toolcard .ico{box-shadow:0 7px 15px rgba(28,50,110,.12);font-family:"Apple Color Emoji","Segoe UI Emoji",system-ui,sans-serif}
#tg-tool-grid .toolcard:nth-child(12n+1) .ico,#tg-tool-grid .toolcard:nth-child(12n+1) .ico[data-color]{background:linear-gradient(135deg,#2563eb,#06b6d4)!important;color:#fff!important}
#tg-tool-grid .toolcard:nth-child(12n+2) .ico,#tg-tool-grid .toolcard:nth-child(12n+2) .ico[data-color]{background:linear-gradient(135deg,#7c3aed,#a855f7)!important;color:#fff!important}
#tg-tool-grid .toolcard:nth-child(12n+3) .ico,#tg-tool-grid .toolcard:nth-child(12n+3) .ico[data-color]{background:linear-gradient(135deg,#0d9488,#22c55e)!important;color:#fff!important}
#tg-tool-grid .toolcard:nth-child(12n+4) .ico,#tg-tool-grid .toolcard:nth-child(12n+4) .ico[data-color]{background:linear-gradient(135deg,#f59e0b,#f97316)!important;color:#fff!important}
#tg-tool-grid .toolcard:nth-child(12n+5) .ico,#tg-tool-grid .toolcard:nth-child(12n+5) .ico[data-color]{background:linear-gradient(135deg,#db2777,#fb7185)!important;color:#fff!important}
#tg-tool-grid .toolcard:nth-child(12n+6) .ico,#tg-tool-grid .toolcard:nth-child(12n+6) .ico[data-color]{background:linear-gradient(135deg,#0891b2,#2563eb)!important;color:#fff!important}
#tg-tool-grid .toolcard:nth-child(12n+7) .ico,#tg-tool-grid .toolcard:nth-child(12n+7) .ico[data-color]{background:linear-gradient(135deg,#4f46e5,#818cf8)!important;color:#fff!important}
#tg-tool-grid .toolcard:nth-child(12n+8) .ico,#tg-tool-grid .toolcard:nth-child(12n+8) .ico[data-color]{background:linear-gradient(135deg,#059669,#34d399)!important;color:#fff!important}
#tg-tool-grid .toolcard:nth-child(12n+9) .ico,#tg-tool-grid .toolcard:nth-child(12n+9) .ico[data-color]{background:linear-gradient(135deg,#e8790c,#fbbf24)!important;color:#fff!important}
#tg-tool-grid .toolcard:nth-child(12n+10) .ico,#tg-tool-grid .toolcard:nth-child(12n+10) .ico[data-color]{background:linear-gradient(135deg,#9333ea,#ec4899)!important;color:#fff!important}
#tg-tool-grid .toolcard:nth-child(12n+11) .ico,#tg-tool-grid .toolcard:nth-child(12n+11) .ico[data-color]{background:linear-gradient(135deg,#0369a1,#38bdf8)!important;color:#fff!important}
#tg-tool-grid .toolcard:nth-child(12n+12) .ico,#tg-tool-grid .toolcard:nth-child(12n+12) .ico[data-color]{background:linear-gradient(135deg,#475569,#64748b)!important;color:#fff!important}
@media(prefers-reduced-motion:reduce){#tg-tool-grid .toolcard{transition:none}#tg-tool-grid .toolcard:hover{transform:none}}
