/* ============================================================
   Toolifico.com – Clean & Minimal Frontend Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500&display=swap');

:root {
  --red:        #E5173F;
  --red-dark:   #c01234;
  --red-light:  #fff0f2;
  --dark:       #1A1A2E;
  --gray-900:   #111827;
  --gray-700:   #374151;
  --gray-600:   #4B5563;
  --gray-500:   #6B7280;
  --gray-400:   #9CA3AF;
  --gray-300:   #D1D5DB;
  --gray-200:   #E5E7EB;
  --gray-100:   #F3F4F6;
  --gray-50:    #F9FAFB;
  --white:      #FFFFFF;
  --font-head:  'Plus Jakarta Sans', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --radius:     10px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 28px rgba(0,0,0,.10);
  --transition: .18s ease;
  --max-w:      1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.65;
  color: var(--gray-700); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-head); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.site-logo { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--dark); white-space: nowrap; }
.site-logo span { color: var(--red); }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a {
  font-family: var(--font-head); font-size: 13.5px; font-weight: 600;
  color: var(--gray-600); padding: 6px 12px; border-radius: 7px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover { background: var(--gray-100); color: var(--gray-900); }
.main-nav a.active { color: var(--red); background: var(--red-light); }
.header-search { position: relative; }
.header-search input {
  width: 200px; padding: 8px 34px 8px 13px;
  border: 1.5px solid var(--gray-200); border-radius: 8px;
  font-family: var(--font-body); font-size: 13.5px;
  color: var(--gray-900); outline: none; background: var(--gray-50);
  transition: border-color var(--transition), width var(--transition);
}
.header-search input:focus { border-color: var(--red); width: 260px; background: var(--white); }
.header-search .search-icon {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); pointer-events: none; font-size: 14px;
}
#search-results {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: 340px; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 300; overflow: hidden;
}
#search-results.open { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 13.5px; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100); transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--gray-50); color: var(--red); }
.search-result-item .badge {
  font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 50px;
  background: var(--red-light); color: var(--red); white-space: nowrap;
}
.search-no-results { padding: 14px; font-size: 14px; color: var(--gray-500); text-align: center; }
.nav-toggle { display: none; background: none; border: none; padding: 6px; border-radius: 6px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--dark); margin: 4px 0; border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213e 60%, #0f3460 100%);
  color: var(--white); padding: 68px 0 56px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 110%, rgba(229,23,63,.13) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(26px, 4.5vw, 48px);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 14px; letter-spacing: -.4px;
}
.hero h1 span { color: var(--red); }
.hero-sub {
  font-size: clamp(14px, 1.8vw, 16px);
  color: rgba(255,255,255,.65);
  max-width: 420px; margin: 0 auto 28px; line-height: 1.6;
}
.hero-search {
  display: flex; align-items: center;
  max-width: 520px; margin: 0 auto;
  background: var(--white); border-radius: 50px;
  padding: 5px 5px 5px 20px;
  box-shadow: 0 6px 32px rgba(0,0,0,.22);
}
.hero-search input {
  flex: 1; border: none; outline: none;
  font-family: var(--font-body); font-size: 14px;
  color: var(--gray-900); background: transparent; min-width: 0;
}
.hero-search input::placeholder { color: var(--gray-400); }
.hero-search button {
  background: var(--red); color: var(--white);
  border: none; border-radius: 50px;
  padding: 10px 22px; font-family: var(--font-head);
  font-size: 13.5px; font-weight: 700;
  transition: background var(--transition); white-space: nowrap; flex-shrink: 0;
}
.hero-search button:hover { background: var(--red-dark); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 48px 0; }
.section-alt { background: var(--gray-50); }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 10px;
}
.section-head-left { display: flex; flex-direction: column; gap: 3px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--red); }
.section-head h2 { font-family: var(--font-head); font-size: clamp(17px, 2vw, 22px); font-weight: 800; color: var(--dark); line-height: 1.2; }
.section-head h2 span { color: var(--red); }
.section-head .view-all {
  font-family: var(--font-head); font-size: 12.5px; font-weight: 600;
  color: var(--gray-600); border: 1.5px solid var(--gray-200);
  padding: 5px 13px; border-radius: 7px; transition: all var(--transition); white-space: nowrap;
}
.section-head .view-all:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }

/* ============================================================
   QUICK TOOLS
   ============================================================ */
.quick-tools { padding: 18px 0 20px; background: var(--white); border-bottom: 1px solid var(--gray-100); }
.quick-tools-label { font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--gray-400); margin-bottom: 10px; }
.quick-tools-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quick-tool-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 8px; padding: 7px 14px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--gray-700); transition: all var(--transition); white-space: nowrap;
}
.quick-tool-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-light); transform: translateY(-1px); }
.quick-tool-btn .q-icon { font-size: 15px; }

/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.category-nav { padding: 18px 0 0; background: var(--white); border-bottom: 1px solid var(--gray-100); }
.category-pills { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; -ms-overflow-style: none; }
.category-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 50px;
  border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-600);
  font-family: var(--font-head); font-size: 12.5px; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: all var(--transition); flex-shrink: 0;
}
.cat-pill:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.cat-pill.active { background: var(--red); border-color: var(--red); color: var(--white); }
.cat-pill .cat-count { background: rgba(0,0,0,.08); font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 50px; }
.cat-pill.active .cat-count { background: rgba(255,255,255,.25); }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.category-card {
  background: var(--white); border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 18px 12px;
  text-align: center; transition: all var(--transition); color: var(--gray-700);
}
.category-card:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(229,23,63,.09); transform: translateY(-2px); color: var(--red); }
.category-card .icon { font-size: 24px; margin-bottom: 7px; display: block; }
.category-card h3 { font-family: var(--font-head); font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.category-card small { color: var(--gray-400); font-size: 11.5px; }

/* ============================================================
   TOOL CARDS — Compact, uniform, NO big thumbnails
   ============================================================ */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

.tool-card {
  background: var(--white); border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex; flex-direction: column; position: relative;
}
.tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(229,23,63,.18); }

/* Small icon — replaces big thumbnail */
.tool-card-icon {
  display: flex; align-items: center; justify-content: center;
  height: 60px;
  background: linear-gradient(135deg, var(--red-light), #fff8f9);
  font-size: 26px; flex-shrink: 0;
}
/* Hide big thumbnails completely on homepage */
.tool-card-thumb,
.tool-card-thumb-placeholder { display: none !important; }

.tool-card-body { padding: 12px 14px 8px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tool-card-body h3 { font-family: var(--font-head); font-size: 13.5px; font-weight: 700; color: var(--dark); line-height: 1.3; }
.tool-card-body p {
  font-size: 12px; color: var(--gray-500);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-card-footer { padding: 6px 14px 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tool-card-cat { font-size: 10.5px; font-weight: 600; color: var(--red); background: var(--red-light); padding: 2px 7px; border-radius: 50px; }
.tool-card-views { font-size: 11px; color: var(--gray-400); display: flex; align-items: center; gap: 3px; }
.tool-card-cta { padding: 0 14px 12px; }
.btn-use-tool {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: var(--dark); color: var(--white);
  border: none; border-radius: 7px; padding: 7px 12px;
  font-size: 12px; font-weight: 700; width: 100%;
  transition: background var(--transition);
}
.btn-use-tool:hover { background: var(--red); color: var(--white); }

/* Rank badge */
.tool-card .rank-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  width: 20px; height: 20px;
  background: var(--dark); color: var(--white); border-radius: 50%;
  font-family: var(--font-head); font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.tool-card .rank-badge.rank-1 { background: #f59e0b; }
.tool-card .rank-badge.rank-2 { background: var(--gray-400); }
.tool-card .rank-badge.rank-3 { background: #cd7c3a; }

/* Bookmark */
.tool-card .bookmark-btn {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; cursor: pointer; opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}
.tool-card:hover .bookmark-btn { opacity: 1; }
.tool-card .bookmark-btn:hover, .tool-card .bookmark-btn.saved { background: var(--red); color: var(--white); opacity: 1; }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.blog-card { border: 1.5px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); background: var(--white); display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 11.5px; color: var(--gray-400); margin-bottom: 6px; }
.blog-card-body h3 { font-family: var(--font-head); font-size: 14.5px; font-weight: 700; color: var(--dark); margin-bottom: 5px; line-height: 1.35; flex: 1; }
.blog-card-body p { font-size: 12.5px; color: var(--gray-500); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 9px 18px; border-radius: 8px; font-family: var(--font-head); font-size: 13.5px; font-weight: 700; cursor: pointer; border: none; transition: all var(--transition); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { background: var(--gray-100); color: var(--dark); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 6px 13px; font-size: 12.5px; }
.btn-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: var(--white); padding: 10px 24px; border-radius: 50px; font-family: var(--font-head); font-size: 13.5px; font-weight: 700; transition: all var(--transition); }
.btn-cta:hover { background: var(--red-dark); color: var(--white); }

/* ============================================================
   CALCULATOR PAGE
   ============================================================ */
.calc-page { padding: 0 0 56px; }
.calc-hero { background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); color: var(--white); padding: 26px 0 30px; }
.calc-hero .breadcrumb { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 8px; }
.calc-hero .breadcrumb a { color: rgba(255,255,255,.8); }
.calc-hero h1 { font-family: var(--font-head); font-size: clamp(20px, 3vw, 30px); font-weight: 800; color: #fff; }
.calc-layout { display: grid; grid-template-columns: 1fr 290px; gap: 28px; align-items: start; padding-top: 28px; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-widget-wrap { background: var(--white); border: 1.5px solid var(--gray-100); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); overflow: hidden; }
.calc-sidebar-widget { background: var(--white); border: 1.5px solid var(--gray-100); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px; }
.calc-sidebar-widget h4 { font-family: var(--font-head); font-size: 12.5px; font-weight: 700; color: var(--dark); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.related-list li { border-bottom: 1px solid var(--gray-100); padding: 9px 0; }
.related-list li:last-child { border-bottom: none; }
.related-list a { font-size: 13.5px; color: var(--gray-700); font-weight: 500; }
.related-list a:hover { color: var(--red); }

/* ============================================================
   SINGLE PAGE / POST
   ============================================================ */
.single-layout { display: grid; grid-template-columns: 1fr 270px; gap: 36px; padding: 44px 0; }
@media (max-width: 900px) { .single-layout { grid-template-columns: 1fr; } }
.single-content { background: var(--white); border: 1.5px solid var(--gray-100); border-radius: var(--radius-lg); padding: 36px; }
.single-content h1 { font-family: var(--font-head); font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--dark); margin-bottom: 14px; }
.single-content .meta { font-size: 13px; color: var(--gray-500); margin-bottom: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.single-content .post-body h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--dark); margin: 28px 0 10px; }
.single-content .post-body h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--dark); margin: 22px 0 8px; }
.single-content .post-body p { margin-bottom: 14px; }
.single-content .post-body ul, .single-content .post-body ol { padding-left: 22px; margin-bottom: 14px; }
.single-content .post-body li { margin-bottom: 5px; }
.single-content .post-body img { border-radius: var(--radius); margin: 20px 0; }
.single-content .post-body blockquote { border-left: 4px solid var(--red); padding: 14px 18px; background: var(--gray-50); border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; font-style: italic; }
.single-content .post-body code { background: var(--gray-100); padding: 2px 5px; border-radius: 4px; font-size: .88em; }
.single-content .post-body pre { background: var(--gray-900); color: #e5e7eb; padding: 18px; border-radius: var(--radius); overflow-x: auto; margin-bottom: 14px; }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-header { background: linear-gradient(120deg, var(--dark), #16213e); color: var(--white); padding: 44px 0; }
.category-header h1 { font-family: var(--font-head); font-size: 32px; font-weight: 800; }
.category-header p { color: rgba(255,255,255,.7); margin-top: 7px; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-header { padding: 44px 0 22px; }
.search-header h1 { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.62); padding: 52px 0 26px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-brand .site-logo { color: var(--white); font-size: 20px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 13.5px; line-height: 1.75; }
.footer-trust { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.footer-trust-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255,255,255,.42); }
.footer-trust-item .ft-icon { font-size: 13px; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); transition: all var(--transition); }
.footer-social a:hover { background: var(--red); color: var(--white); }
.footer-col h5 { font-family: var(--font-head); font-size: 11.5px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.52); font-size: 13.5px; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,.42); }
.footer-bottom a:hover { color: var(--red); }

/* Trust bar above footer */
.footer-trust-bar { background: var(--gray-50); border-top: 1px solid var(--gray-200); padding: 18px 0; }
.footer-trust-bar .trust-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--gray-600); }
.trust-item .trust-icon { font-size: 15px; }
.trust-item strong { color: var(--gray-900); font-weight: 700; }

/* ============================================================
   MISC
   ============================================================ */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 14px; font-size: 13.5px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.badge-featured { background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 50px; }
.badge-popular  { background: var(--dark); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 50px; }
.section-empty { text-align: center; padding: 56px 0; color: var(--gray-500); }
.section-empty .icon { font-size: 44px; margin-bottom: 10px; }
.maintenance-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--dark); color: var(--white); text-align: center; padding: 40px; }
.maintenance-page h1 { font-family: var(--font-head); font-size: 38px; font-weight: 800; margin-bottom: 14px; }
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.error-page .code { font-family: var(--font-head); font-size: 110px; font-weight: 800; color: var(--red); line-height: 1; }
.error-page h2 { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.error-page p { color: var(--gray-500); margin-bottom: 22px; }
.pagination { display: flex; gap: 5px; justify-content: center; padding: 36px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 7px; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; border: 1.5px solid var(--gray-200); color: var(--gray-700); transition: all var(--transition); }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); border-color: var(--red); color: var(--white); }
.sticky-search-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150; background: var(--white); border-top: 1px solid var(--gray-200); padding: 9px 14px; box-shadow: 0 -4px 16px rgba(0,0,0,.07); }
.sticky-search-bar input { width: 100%; padding: 10px 13px; border: 1.5px solid var(--gray-300); border-radius: 9px; font-size: 14px; outline: none; font-family: var(--font-body); background: var(--gray-50); }
.sticky-search-bar input:focus { border-color: var(--red); background: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px; }
  .main-nav { order: 3; width: 100%; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { display: block; padding: 9px 4px; border-bottom: 1px solid var(--gray-100); }
  .nav-toggle { display: block; margin-left: auto; }
  .header-search { order: 2; flex: 1; }
  .header-search input, .header-search input:focus { width: 100%; }
  .hero { padding: 48px 0 40px; }
  .hero-search { flex-direction: column; border-radius: 12px; padding: 10px; gap: 7px; }
  .hero-search input { width: 100%; text-align: center; }
  .quick-tools-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .quick-tools-row::-webkit-scrollbar { display: none; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .blog-grid { grid-template-columns: 1fr; }
  .section { padding: 34px 0; }
  .section-head { flex-direction: column; gap: 8px; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .sticky-search-bar { display: block; }
  body { padding-bottom: 62px; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 13px; }
}
