/*
 Theme Name:   InstantTool Child
 Theme URI:    https://www.instanttool.in
 Description:  Blocksy child theme for InstantTool — Free Online Calculators & Tools for India
 Author:       InstantTool
 Author URI:   https://www.instanttool.in
 Template:     blocksy
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  instanttool-child
*/

/* ===================================================
   CSS CUSTOM PROPERTIES — InstantTool Design System
   =================================================== */
:root {
  --it-primary:       #1D4ED8;
  --it-primary-dark:  #1E3A8A;
  --it-primary-light: #EFF6FF;
  --it-accent:        #2563EB;
  --it-success:       #16A34A;
  --it-success-light: #F0FDF4;
  --it-success-border:#BBF7D0;
  --it-warning-light: #FFFBEB;
  --it-warning-border:#FDE68A;
  --it-warning-text:  #78350F;
  --it-dark:          #0F1729;
  --it-navy:          #111827;
  --it-text:          #1F2937;
  --it-text-muted:    #4B5563;
  --it-text-subtle:   #6B7280;
  --it-border:        #E1E7EF;
  --it-border-light:  #F1F5F9;
  --it-bg:            #FFFFFF;
  --it-bg-soft:       #F8FAFC;
  --it-bg-gray:       #F3F4F6;
  --it-radius-sm:     8px;
  --it-radius:        12px;
  --it-radius-lg:     20px;
  --it-shadow:        0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --it-shadow-hover:  0 4px 12px rgba(29,78,216,.15), 0 8px 32px rgba(0,0,0,.10);
  --it-font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --it-container:     1200px;
}

/* ===================================================
   GLOBAL RESETS & BASE
   =================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--it-font);
  color: var(--it-text);
  background: var(--it-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--it-primary); text-decoration: none; }
a:hover { color: var(--it-primary-dark); }

img { max-width: 100%; height: auto; }

/* ===================================================
   UTILITY CLASSES
   =================================================== */
.it-container {
  max-width: var(--it-container);
  margin: 0 auto;
  padding: 0 24px;
}

.it-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--it-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
  text-decoration: none;
  line-height: 1;
}

.it-btn-primary {
  background: var(--it-primary);
  color: #fff;
}
.it-btn-primary:hover {
  background: var(--it-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29,78,216,.35);
}

.it-btn-outline {
  background: transparent;
  color: var(--it-primary);
  border: 2px solid var(--it-primary);
}
.it-btn-outline:hover {
  background: var(--it-primary);
  color: #fff;
}

.it-btn-white {
  background: #fff;
  color: var(--it-primary);
  font-weight: 700;
}
.it-btn-white:hover {
  background: var(--it-primary-light);
  color: var(--it-primary-dark);
}

.it-badge {
  display: inline-block;
  background: var(--it-primary-light);
  color: var(--it-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.it-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--it-text-subtle);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
}

.it-section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--it-dark);
  letter-spacing: -.3px;
  margin: 0 0 8px;
  line-height: 1.25;
}

.it-section-sub {
  font-size: 16px;
  color: var(--it-text-muted);
  line-height: 1.6;
  margin: 0 0 32px;
}

//* ===================================================
   SITE HEADER
   =================================================== */

.it-site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:#fff;
  border-bottom:1px solid var(--it-border);
  box-shadow:0 1px 8px rgba(0,0,0,.06);
}

.it-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:72px;
  padding:10px 0;
}

/* =========================
   LOGO
   ========================= */

.it-logo{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-shrink:0;
  text-decoration:none;
  line-height:1;
  margin:0;
  padding:0;
}

/* MAIN LOGO IMAGE */
.it-site-header img.it-header-logo-img{
  display:block !important;

  /* PERFECT SIZE */
  height:52px !important;
  width:auto !important;

  /* IMPORTANT */
  max-width:240px !important;
  max-height:none !important;

  object-fit:contain !important;

  border:none;
  box-shadow:none;
  background:transparent;
}

/* =========================
   NAVIGATION
   ========================= */

.it-nav{
  flex:1;
  display:flex;
  align-items:center;
  gap:4px;
  justify-content:center;
}

.it-nav a{
  font-size:14px;
  font-weight:500;
  color:var(--it-text-muted);
  padding:6px 12px;
  border-radius:6px;
  transition:all .15s;
  white-space:nowrap;
}

.it-nav a:hover,
.it-nav a.current{
  color:var(--it-primary);
  background:var(--it-primary-light);
}

/* =========================
   HEADER ACTIONS
   ========================= */

.it-header-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}

/* SEARCH BUTTON */

.it-search-toggle{
  width:36px;
  height:36px;
  border:1px solid var(--it-border);
  border-radius:8px;
  background:transparent;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--it-text-subtle);
  transition:all .15s;
}

.it-search-toggle:hover{
  border-color:var(--it-primary);
  color:var(--it-primary);
  background:var(--it-primary-light);
}

/* HAMBURGER */

.it-hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:4px;
}

.it-hamburger span{
  display:block;
  width:22px;
  height:2px;
  background:var(--it-text);
  border-radius:2px;
  transition:all .2s;
}

/* =========================
   TABLET RESPONSIVE
   ========================= */

@media (max-width:768px){

  .it-header-inner{
    min-height:64px;
    gap:14px;
  }

  .it-site-header img.it-header-logo-img{
    height:42px !important;
    max-width:180px !important;
  }

  .it-nav{
    display:none;
  }

  .it-hamburger{
    display:flex;
  }
}

/* =========================
   MOBILE RESPONSIVE
   ========================= */

@media (max-width:480px){

  .it-site-header img.it-header-logo-img{
    height:36px !important;
    max-width:150px !important;
  }

  .it-header-inner{
    min-height:58px;
    padding:6px 0;
  }
}/* ===================================================
   HOME PAGE — HERO
   =================================================== */
.it-hero {
  background: linear-gradient(135deg, #EEF2FF 0%, #DBEAFE 50%, #F0F9FF 100%);
  padding: 72px 0 64px;
  overflow: hidden;
  position: relative;
}

.it-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 70%);
  border-radius: 50%;
}

.it-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.it-hero-text {}

.it-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--it-border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--it-primary);
  margin-bottom: 20px;
}

.it-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.5px;
  color: var(--it-dark);
  margin: 0 0 18px;
}

.it-hero h1 em {
  font-style: normal;
  color: var(--it-primary);
}

.it-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--it-text-muted);
  margin: 0 0 32px;
  max-width: 440px;
}

.it-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.it-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.it-hero-card {
  background: #fff;
  border-radius: var(--it-radius-lg);
  padding: 28px;
  box-shadow: var(--it-shadow-hover);
  max-width: 340px;
  width: 100%;
}

.it-hero-card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--it-text-subtle);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 14px;
}

.it-stat-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.it-stat {
  flex: 1;
  background: var(--it-bg-soft);
  border-radius: var(--it-radius-sm);
  padding: 14px;
  text-align: center;
}
.it-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--it-dark);
}
.it-stat-text {
  font-size: 11px;
  color: var(--it-text-subtle);
  margin-top: 2px;
}

/* ===================================================
   HOME PAGE — CATEGORY STRIP
   =================================================== */
.it-cat-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--it-border-light);
}

.it-cat-strip-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.it-cat-strip-inner::-webkit-scrollbar { display: none; }

.it-cat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--it-bg-soft);
  border: 1px solid var(--it-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--it-text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.it-cat-chip:hover,
.it-cat-chip.active {
  background: var(--it-primary-light);
  border-color: var(--it-primary);
  color: var(--it-primary);
}

/* ===================================================
   HOME PAGE — BROWSE BY CATEGORY
   =================================================== */
.it-browse {
  padding: 64px 0 48px;
}

.it-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* FIXED 3 columns */
  gap: 16px;
  margin-top: 32px;
}

.it-cat-card {
  background: var(--it-bg-soft);
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all .2s;
  text-decoration: none;
  color: var(--it-text);
  display: block;
}
.it-cat-card:hover {
  border-color: var(--it-primary);
  box-shadow: var(--it-shadow-hover);
  transform: translateY(-2px);
  color: var(--it-text);
}

.it-cat-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.it-cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--it-dark);
  display: block;
  margin-bottom: 4px;
}

.it-cat-count {
  font-size: 12px;
  color: var(--it-text-subtle);
}
/* Tablet */
@media (max-width: 768px) {
  .it-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .it-cat-grid {
    grid-template-columns: 1fr;
  }
}
/* ===================================================
   HOME PAGE — POPULAR TOOLS
   =================================================== */
.it-popular {
  padding: 48px 0;
  background: var(--it-bg-soft);
}

.it-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.it-view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--it-primary);
  white-space: nowrap;
}
.it-view-all:hover { text-decoration: underline; }

.it-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
  align-items: stretch;
}

.it-tool-card {
  background: #fff;
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius-lg);
  padding: 20px;
  transition: all .2s ease;
  text-decoration: none;
  color: var(--it-text);
  position: relative;
  overflow: hidden;

  /* IMPORTANT FIXES */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 180px;
  height: 100%;
  box-sizing: border-box;
}

.it-tool-card::after {
  content: '→';
  position: absolute;
  right: 16px;
  bottom: 16px; /* changed from top center */
  opacity: 0;
  font-size: 16px;
  color: var(--it-primary);
  transition: all .2s ease;
}

.it-tool-card:hover {
  border-color: var(--it-primary);
  box-shadow: var(--it-shadow-hover);
  transform: translateY(-2px);
  color: var(--it-text);
}

.it-tool-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.it-tool-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--it-text-subtle);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.it-tool-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--it-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.it-tool-card-desc {
  font-size: 13px;
  color: var(--it-text-muted);
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tablet */
@media (max-width: 992px) {
  .it-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 576px) {
  .it-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   HOME PAGE — ALL TOOLS (MULTI-COLUMN)
   =================================================== */
.it-all-tools {
  padding: 64px 0;
}

.it-all-tools-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.it-tool-col h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--it-dark);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--it-primary);
}

.it-tool-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.it-tool-col ul li {
  border-bottom: 1px solid var(--it-border-light);
}

.it-tool-col ul li:last-child { border-bottom: none; }

.it-tool-col ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 4px;
  font-size: 13px;
  color: var(--it-text);
  transition: color .15s;
}
.it-tool-col ul li a:hover { color: var(--it-primary); }
.it-tool-col ul li a::after {
  content: '›';
  color: var(--it-border);
  font-size: 16px;
}
.it-tool-col ul li a:hover::after { color: var(--it-primary); }

/* ===================================================
   HOME PAGE — FEATURED TOOL BANNER
   =================================================== */
.it-featured-tool {
  padding: 48px 0;
  background: var(--it-bg-soft);
}

.it-featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border-radius: var(--it-radius-lg);
  border: 1px solid var(--it-border);
  padding: 40px;
  box-shadow: var(--it-shadow);
}

.it-featured-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--it-dark);
  margin: 0 0 12px;
  letter-spacing: -.3px;
}

.it-featured-text p {
  font-size: 15px;
  color: var(--it-text-muted);
  line-height: 1.65;
  margin: 0 0 24px;
}

.it-featured-visual {
  background: var(--it-bg-soft);
  border-radius: var(--it-radius-lg);
  padding: 28px;
  text-align: center;
}

/* ===================================================
   HOME PAGE — TRUST STRIP
   =================================================== */
.it-trust {
  padding: 56px 0;
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 100%);
  color: #fff;
}

.it-trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.it-trust-item {}

.it-trust-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.it-trust-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.it-trust-text {
  font-size: 14px;
  opacity: .75;
  line-height: 1.5;
}

/* ===================================================
   HOME PAGE — FAQ
   =================================================== */
.it-faq {
  padding: 64px 0;
}

.it-faq-list {
  margin-top: 32px;
  max-width: 760px;
}

.it-faq-item {
  border-bottom: 1px solid var(--it-border-light);
}

.it-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--it-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--it-font);
}

.it-faq-q svg {
  flex-shrink: 0;
  transition: transform .2s;
  color: var(--it-text-subtle);
}

.it-faq-item.open .it-faq-q svg {
  transform: rotate(180deg);
  color: var(--it-primary);
}

.it-faq-a {
  display: none;
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--it-text-muted);
}

.it-faq-item.open .it-faq-a { display: block; }

/* ===================================================
   HOME PAGE — FINAL CTA BANNER
   =================================================== */
.it-cta-banner {
  padding: 64px 0;
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
  color: #fff;
  text-align: center;
}

.it-cta-banner h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -.3px;
}

.it-cta-banner p {
  font-size: 17px;
  opacity: .85;
  margin: 0 0 32px;
}

/* ===================================================
   CATEGORY PAGE
   =================================================== */
.it-category-hero {
  padding: 40px 0 32px;
  background: var(--it-bg-soft);
  border-bottom: 1px solid var(--it-border);
}

.it-category-hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--it-dark);
  letter-spacing: -.4px;
  margin: 8px 0 12px;
}

.it-category-hero p {
  font-size: 16px;
  color: var(--it-text-muted);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

.it-cat-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 48px 0;
}

.it-cat-tool-card {
  background: #fff;
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius-lg);
  padding: 24px;
  transition: all .2s;
  text-decoration: none;
  display: block;
}
.it-cat-tool-card:hover {
  border-color: var(--it-primary);
  box-shadow: var(--it-shadow-hover);
  transform: translateY(-2px);
}

.it-cat-tool-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--it-dark);
  margin: 0 0 8px;
}

.it-cat-tool-card p {
  font-size: 13px;
  color: var(--it-text-muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.it-explore-more {
  background: var(--it-bg-soft);
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius-lg);
  padding: 28px 32px;
  margin-bottom: 56px;
}

.it-explore-more h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--it-dark);
  margin: 0 0 16px;
}

.it-cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.it-cat-tag {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--it-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--it-text);
  text-decoration: none;
  transition: all .15s;
}
.it-cat-tag:hover {
  border-color: var(--it-primary);
  color: var(--it-primary);
  background: var(--it-primary-light);
}

/* ===================================================
   TOOL PAGE (SINGLE TOOL)
   =================================================== */
.it-tool-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.it-tool-header {
  padding: 32px 0 24px;
}

.it-tool-header h1 {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 900;
  color: var(--it-dark);
  letter-spacing: -.4px;
  margin: 12px 0 14px;
  line-height: 1.2;
}

.it-tool-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--it-text-muted);
  margin: 0;
}

/* Calculator placeholder */
.it-calculator-widget {
  background: #fff;
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius-lg);
  padding: 32px;
  box-shadow: var(--it-shadow);
  margin: 24px 0;
}

.it-calc-tabs {
  display: flex;
  gap: 4px;
  background: var(--it-bg-gray);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}

.it-calc-tab {
  padding: 8px 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--it-text-subtle);
  transition: all .15s;
  font-family: var(--it-font);
}

.it-calc-tab.active {
  background: var(--it-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(29,78,216,.3);
}

.it-calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.it-calc-inputs {}

.it-field {
  margin-bottom: 16px;
}

.it-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--it-text-muted);
  margin-bottom: 6px;
}

.it-field input,
.it-field select {
  width: 100%;
  border: 1.5px solid var(--it-border);
  border-radius: var(--it-radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--it-font);
  color: var(--it-dark);
  outline: none;
  transition: border .15s;
  background: #fff;
}
.it-field input:focus,
.it-field select:focus { border-color: var(--it-primary); }

.it-rate-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.it-rate-btn {
  padding: 4px 12px;
  border: 1.5px solid var(--it-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--it-text-muted);
  transition: all .15s;
  font-family: var(--it-font);
}
.it-rate-btn.active,
.it-rate-btn:hover {
  border-color: var(--it-primary);
  color: var(--it-primary);
  background: var(--it-primary-light);
}

.it-calc-results {}

.it-result-card {
  background: var(--it-bg-soft);
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.it-result-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--it-text-subtle);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.it-result-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--it-dark);
}

.it-result-card.it-result-total {
  background: var(--it-primary);
  border-color: var(--it-primary);
}
.it-result-card.it-result-total .it-result-label { color: rgba(255,255,255,.7); }
.it-result-card.it-result-total .it-result-value { color: #fff; }

/* Formula & content sections */
.it-tool-content {
  margin-bottom: 40px;
}

.it-tool-section {
  margin-bottom: 32px;
}

.it-tool-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--it-dark);
  margin: 0 0 14px;
  letter-spacing: -.2px;
}

.it-formula-panel {
  background: var(--it-success-light);
  border: 1.5px solid var(--it-success-border);
  border-radius: var(--it-radius-lg);
  padding: 28px;
  text-align: center;
  margin-bottom: 16px;
}

.it-formula {
  font-size: clamp(16px, 2.8vw, 22px);
  font-weight: 700;
  color: var(--it-success);
  line-height: 1.6;
  word-break: break-word;
  font-family: 'Fira Code', 'Consolas', monospace;
}

.it-legend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 24px;
}
.it-legend-table th,
.it-legend-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--it-border-light);
}
.it-legend-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--it-text-subtle);
  background: var(--it-bg-soft);
}
.it-legend-table td:first-child {
  font-weight: 700;
  font-family: 'Fira Code', 'Consolas', monospace;
  color: var(--it-primary);
  width: 100px;
}

.it-example-box {
  background: var(--it-warning-light);
  border: 1.5px solid var(--it-warning-border);
  border-radius: var(--it-radius);
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--it-warning-text);
}

/* Benefit & Tips lists */
.it-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.it-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--it-text-muted);
  line-height: 1.5;
}

.it-check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--it-success-light);
  border: 1.5px solid var(--it-success-border);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%2316A34A' d='M10 3L5 8.5 2 5.5l-1 1L5 10.5l6-7z'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

.it-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.it-step-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--it-text-muted);
  line-height: 1.55;
}

.it-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--it-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.it-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.it-tips-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--it-text-muted);
  line-height: 1.55;
  border-bottom: 1px solid var(--it-border-light);
}
.it-tips-list li:last-child { border-bottom: none; }
.it-tips-list li::before {
  content: '•';
  color: var(--it-primary);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
}

/* Related tools on tool page */
.it-related {
  padding: 40px 0;
  border-top: 1px solid var(--it-border-light);
}

.it-related h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--it-dark);
  margin: 0 0 20px;
}

.it-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.it-related-card {
  background: #fff;
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius);
  padding: 16px;
  text-decoration: none;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.it-related-card:hover {
  border-color: var(--it-primary);
  box-shadow: var(--it-shadow-hover);
}

.it-related-arrow {
  width: 28px;
  height: 28px;
  background: var(--it-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--it-primary);
  font-size: 14px;
  flex-shrink: 0;
}

.it-related-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--it-dark);
  line-height: 1.3;
}

/* Tool CTA banner */
.it-tool-cta {
  background: linear-gradient(135deg, var(--it-primary) 0%, #2563EB 100%);
  border-radius: var(--it-radius-lg);
  padding: 36px 40px;
  text-align: center;
  color: #fff;
  margin: 32px 0;
}

.it-tool-cta h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
}

.it-tool-cta p {
  font-size: 15px;
  opacity: .85;
  margin: 0 0 20px;
}

/* SEO text section */
.it-seo-text {
  padding: 48px 0;
  border-top: 1px solid var(--it-border-light);
}

.it-seo-text h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--it-dark);
  margin: 0 0 16px;
}

.it-seo-text p {
  font-size: 14px;
  color: var(--it-text-muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

/* ===================================================
   SITE FOOTER
   =================================================== */
.it-site-footer {
  background: #0F1729;
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
}

.it-footer-inner {
  display: grid;
  grid-template-columns: 260px repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.it-footer-brand {}

.it-footer-logo{
  display:inline-block;
  margin-bottom:14px;
  text-decoration:none;
}
.it-footer-logo-img{
  height:60px;
  width:auto;
  display:block;
  background:transparent;
}

.it-footer-logo span { color: #60A5FA; }

.it-footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.55);
  max-width: 260px;
}

.it-footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #fff;
  margin: 0 0 16px;
}

.it-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.it-footer-col ul li {
  margin-bottom: 10px;
}

.it-footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  transition: color .15s;
}
.it-footer-col ul li a:hover { color: #fff; }

.it-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* ===================================================
   MOBILE NAV
   =================================================== */
.it-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1500;
}
.it-mobile-menu.active { display: block; }
.it-mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  padding: 24px;
  overflow-y: auto;
}
.it-mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--it-bg-gray);
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.it-mobile-nav {
  margin-top: 48px;
}
.it-mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--it-text);
  border-bottom: 1px solid var(--it-border-light);
}
.it-mobile-nav a:hover { color: var(--it-primary); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .it-hero-inner { grid-template-columns: 1fr; }
  .it-hero-visual { display: none; }
  .it-all-tools-cols { grid-template-columns: repeat(2, 1fr); }
  .it-cat-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .it-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .it-featured-inner { grid-template-columns: 1fr; }
  .it-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .it-nav { display: none; }
  .it-hamburger { display: flex; }
  .it-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .it-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .it-all-tools-cols { grid-template-columns: 1fr; }
  .it-trust-inner { grid-template-columns: 1fr; gap: 24px; }
  .it-cat-tools-grid { grid-template-columns: 1fr; }
  .it-calc-body { grid-template-columns: 1fr; }
  .it-check-list { grid-template-columns: 1fr; }
  .it-related-grid { grid-template-columns: repeat(2, 1fr); }
  .it-footer-inner { grid-template-columns: 1fr 1fr; }
  .it-tool-page { padding: 0 16px; }
  .it-container { padding: 0 16px; }
  .it-hero { padding: 48px 0 40px; }
}

@media (max-width: 480px) {
  .it-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .it-tools-grid { grid-template-columns: 1fr; }
  .it-footer-inner { grid-template-columns: 1fr; }
  .it-related-grid { grid-template-columns: 1fr 1fr; }
  .it-hero-ctas { flex-direction: column; }
  .it-hero-ctas .it-btn { text-align: center; justify-content: center; }
}

/* ===================================================
   BLOG POST — single.php
   =================================================== */

/* Blog content typography */
.it-blog-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--it-dark);
  margin: 32px 0 12px;
  line-height: 1.3;
}

.it-blog-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--it-dark);
  margin: 24px 0 10px;
}

.it-blog-content p {
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 16px;
}

.it-blog-content ul, .it-blog-content ol {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  padding-left: 24px;
  margin: 0 0 16px;
}

.it-blog-content li { margin-bottom: 6px; }

.it-blog-content blockquote {
  border-left: 4px solid var(--it-primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: #EFF6FF;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1E40AF;
}

.it-blog-content code {
  background: #F1F5F9;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  font-family: 'Fira Code', monospace;
  color: #1D4ED8;
}

.it-blog-content pre {
  background: #0F1729;
  color: #E2E8F0;
  border-radius: 10px;
  padding: 20px;
  font-size: 13px;
  font-family: 'Fira Code', monospace;
  overflow-x: auto;
  margin: 20px 0;
  line-height: 1.6;
}

.it-blog-content pre code { background: none; color: inherit; padding: 0; }

.it-blog-content a {
  color: var(--it-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.it-blog-content a:hover { color: #1E40AF; }

.it-blog-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 16px 0;
}

.it-blog-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0;
}

.it-blog-content th {
  background: #F8FAFC;
  font-weight: 700;
  padding: 10px 14px;
  border: 1px solid #E1E7EF;
  text-align: left;
}

.it-blog-content td {
  padding: 10px 14px;
  border: 1px solid #E1E7EF;
}

.it-blog-content tr:nth-child(even) td { background: #F8FAFC; }

/* "More from blog" hover */
.it-blog-more-item:hover {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

/* Responsive blog */
@media (max-width: 768px) {
  .it-blog-title { font-size: 22px !important; }
  .it-blog-content h2 { font-size: 18px; }
}

.it-tools-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100%;
}

.it-tool-card {
    width: 100%;
    min-height: 180px;
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 992px) {
    .it-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .it-tools-grid {
        grid-template-columns: 1fr !important;
    }
}
