:root {
  --hp-bg: #ffffff;
  --hp-surface: #ffffff;
  --hp-muted: #f6f7f9;
  --hp-border: #e6e8ec;
  --hp-text: #111827;
  --hp-text-soft: #4b5563;
  --hp-text-muted: #6b7280;
  --hp-accent: #ff5a5f;
  --hp-accent-soft: #fff1f2;

  --hp-radius-sm: 10px;
  --hp-radius-md: 14px;
  --hp-radius-lg: 20px;

  --hp-container: 1180px;
  --hp-space-1: 8px;
  --hp-space-2: 12px;
  --hp-space-3: 16px;
  --hp-space-4: 24px;
  --hp-space-5: 32px;
  --hp-space-6: 48px;
  --hp-space-7: 72px;

  --hp-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: var(--hp-bg);
  color: var(--hp-text);
  font-family: var(--hp-font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.site-content,
.inside-article {
  background: transparent;
}

.grid-container {
  max-width: var(--hp-container);
}

a {
  color: var(--hp-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  color: var(--hp-text);
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-weight: 750;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

p {
  color: var(--hp-text-soft);
}

.entry-title {
  margin-bottom: var(--hp-space-4);
}

.inside-article {
  padding-top: var(--hp-space-6);
  padding-bottom: var(--hp-space-7);
}

.hp-card {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: var(--hp-space-4);
}

.hp-muted-card {
  background: var(--hp-muted);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: var(--hp-space-4);
}

.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  background: var(--hp-accent-soft);
  color: var(--hp-accent);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 650;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--hp-accent);
  background: var(--hp-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.hp-btn:hover {
  color: #fff;
  opacity: .94;
}

@media (max-width: 768px) {
  .inside-article {
    padding-top: var(--hp-space-4);
    padding-bottom: var(--hp-space-5);
  }

  body {
    font-size: 15.5px;
  }
}

/* ------------------------------
HOMEPAGE HERO
------------------------------ */

.hp-hero {
  padding: 72px 0 56px;
}

.hp-hero h1 {
  max-width: 920px;
  margin: 18px 0 22px;
}

.hp-hero p {
  max-width: 760px;
  font-size: 1.08rem;
  color: var(--hp-text-soft);
}

.hp-hero-search {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  max-width: 620px;
}

.hp-hero-search input {
  flex: 1;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--hp-border);
  background: #fff;
  padding: 0 18px;
  font-size: 15px;
}

.hp-hero-search input:focus {
  outline: none;
  border-color: var(--hp-accent);
  box-shadow: 0 0 0 4px rgba(255,90,95,.08);
}

.hp-hero-search button {
  height: 54px;
  border: none;
  border-radius: 14px;
  background: var(--hp-accent);
  color: #fff;
  font-weight: 700;
  padding: 0 22px;
  cursor: pointer;
}

.hp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hp-tags span {
  border: 1px solid var(--hp-border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hp-text-soft);
}

/* ------------------------------
SECTIONS
------------------------------ */

.hp-section {
  padding: 64px 0;
  border-top: 1px solid var(--hp-border);
}

.hp-section-head {
  margin-bottom: 28px;
}

.hp-section-head h2 {
  margin-bottom: 10px;
}

.hp-section-head p {
  margin: 0;
}

/* ------------------------------
SEO CONTENT
------------------------------ */

.hp-seo-content {
  padding-top: 72px;
  border-top: 1px solid var(--hp-border);
}

.hp-seo-content h2 {
  margin-top: 52px;
}

.hp-seo-content ul li {
  margin-bottom: 10px;
}

/* ------------------------------
HEADER CLEANUP
------------------------------ */

.site-header {
  border-bottom: 1px solid var(--hp-border);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}

.main-navigation .main-nav ul li a {
  font-weight: 600;
  font-size: 14px;
}

.site-logo img {
  max-height: 48px;
}

/* ------------------------------
MOBILE
------------------------------ */

@media (max-width: 768px) {

  .hp-hero {
    padding: 44px 0 30px;
  }

  .hp-hero-search {
    flex-direction: column;
  }

  .hp-hero-search button {
    width: 100%;
  }

  .hp-tags {
    gap: 8px;
  }

  .hp-tags span {
    font-size: 13px;
    padding: 8px 12px;
  }

  .hp-section {
    padding: 42px 0;
  }
}

/* ------------------------------
PLATFORM TOOL CARDS
------------------------------ */

.hp-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hp-tool-card {
  display: block;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  background: #fff;
  padding: 24px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.hp-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,90,95,.35);
  background: #fbfdff;
}

.hp-tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hp-accent-soft);
  color: var(--hp-accent);
  font-weight: 800;
  margin-bottom: 18px;
}

.hp-tool-card h3 {
  font-size: 1.12rem;
  margin: 0 0 10px;
}

.hp-tool-card p {
  margin: 0;
  font-size: 14px;
  color: var(--hp-text-muted);
}

/* ------------------------------
CATEGORY EXPLORER
------------------------------ */

.hp-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hp-category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  background: var(--hp-muted);
  padding: 22px 24px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.hp-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,90,95,.35);
  background: #fff;
}

.hp-category-kicker {
  display: block;
  color: var(--hp-accent);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hp-category-card h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
}

.hp-category-card p {
  margin: 0;
  font-size: 14px;
  color: var(--hp-text-muted);
}

.hp-category-arrow {
  font-size: 22px;
  color: var(--hp-accent);
}

@media (max-width: 768px) {
  .hp-tool-grid,
  .hp-category-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------
MODERN HEADER
------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17,24,39,.06);
}

.inside-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-branding {
  flex-shrink: 0;
}

.site-logo img {
  max-height: 42px;
  width: auto;
}

.main-navigation {
  margin-left: auto;
}

.main-navigation .main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-navigation .main-nav ul li a {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--hp-text-soft);
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}

.main-navigation .main-nav ul li a:hover {
  background: var(--hp-muted);
  color: var(--hp-text);
}

.main-navigation .main-nav ul li.current-menu-item a {
  background: var(--hp-accent-soft);
  color: var(--hp-accent);
}

@media (max-width: 1024px) {

  .inside-header {
    min-height: 68px;
  }

  .main-navigation .menu-toggle {
    border-radius: 12px;
    border: 1px solid var(--hp-border);
  }
}

/* ------------------------------
LAYOUT EXPANSION
------------------------------ */

:root {
  --hp-container: 1320px;
}

/* wider layout */

.grid-container,
.site-content,
.inside-header,
.widget-area .inside-right-sidebar,
.footer-widgets-container,
.site-info {
  max-width: var(--hp-container);
}

/* content width */

.separate-containers .inside-article,
.one-container .container,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .site-content {
  background: transparent;
}

/* hero spacing */

.entry-content > h1:first-of-type {
  margin-top: 34px;
  margin-bottom: 48px;
  max-width: 920px;
}

/* section spacing */

.entry-content h2 {
  margin-top: 96px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.entry-content p {
  max-width: 920px;
}

/* section divider */

.entry-content hr {
  margin: 80px 0;
  border: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(15,23,42,.08),
    transparent
  );
}

/* tool cards */

.hp-tool-card {
  min-height: 180px;
  padding: 28px;
  border-radius: 24px;
}

.hp-tool-card h3 {
  font-size: 20px;
  line-height: 1.25;
}

/* category cards */

.hp-category-card {
  min-height: 132px;
  padding: 26px;
  border-radius: 22px;
}

/* category section */

.hp-category-grid {
  margin-top: 36px;
}

/* hero search */

.hp-hero-search {
  max-width: 720px;
}

.hp-hero-search input {
  height: 60px;
  border-radius: 18px;
  font-size: 16px;
  padding: 0 22px;
}

.hp-hero-search button {
  height: 60px;
  padding: 0 28px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
}

/* categories inline */

.hp-hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hp-hero-cats a {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--hp-border);
  color: var(--hp-text-soft);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all .18s ease;
}

.hp-hero-cats a:hover {
  background: var(--hp-accent-soft);
  color: var(--hp-accent);
  border-color: transparent;
}

/* =========================================
MOBILE OPTIMIZATION
========================================= */

@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  /* header */

  .site-logo img {
    max-height: 42px !important;
  }

  .inside-header {
    padding: 10px 16px;
  }

  .main-navigation {
    font-size: 14px;
  }

  /* hero */

  .entry-content > h1:first-of-type {
    font-size: 38px !important;
    line-height: 1.08;
    margin-top: 18px;
    margin-bottom: 26px;
  }

  .entry-content h2 {
    font-size: 34px !important;
    line-height: 1.12;
    margin-top: 56px;
  }

  .hp-hero-search {
    flex-direction: column;
    gap: 12px;
  }

  .hp-hero-search input,
  .hp-hero-search button {
    width: 100%;
  }

  .hp-hero-cats {
    gap: 8px;
  }

  .hp-hero-cats a {
    font-size: 13px;
    padding: 8px 12px;
  }

  /* cards */

  .hp-tool-grid,
  .hp-category-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hp-tool-card,
  .hp-category-card {
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
  }

  .hp-tool-card h3,
  .hp-category-card h3 {
    font-size: 18px;
  }

  /* paragraphs */

  .entry-content p,
  .entry-content li {
    font-size: 15px;
    line-height: 1.7;
  }

  /* sections */

  .entry-content hr {
    margin: 52px 0;
  }

  .entry-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* footer */

  .site-info {
    text-align: center;
    font-size: 13px;
    padding: 18px;
  }
}

/* =========================================
MOBILE APP TABBAR
========================================= */

.hp-mobile-tabbar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 76px;
  }

  .hp-mobile-tabbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
  }

  .hp-mobile-tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    border-radius: 16px;
    color: var(--hp-text-soft);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
  }

  .hp-mobile-tabbar-item span {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }

  .hp-mobile-tabbar-item:hover,
  .hp-mobile-tabbar-item:focus {
    background: var(--hp-accent-soft);
    color: var(--hp-accent);
  }
}

/* =========================================
MOBILE CARD OVERFLOW FIX
========================================= */

@media (max-width: 768px) {
  .hp-tool-grid,
  .hp-category-grid {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hp-tool-card,
  .hp-category-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hp-tool-card h3,
  .hp-category-card h3,
  .hp-tool-card p,
  .hp-category-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hp-tool-card h3 {
    font-size: 16px !important;
    line-height: 1.35;
  }

  .hp-tool-card p {
    font-size: 13px !important;
    line-height: 1.55;
  }

  .hp-tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    margin-bottom: 12px;
  }
}

/* =========================================
MOBILE CARD SYSTEM RESET
========================================= */

@media (max-width: 768px) {

  .hp-tool-grid,
  .hp-category-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .hp-tool-card,
  .hp-category-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;

    width: 100% !important;
    min-height: unset !important;

    padding: 18px !important;
    border-radius: 18px !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .hp-tool-card h3,
  .hp-category-card h3 {
    display: block !important;

    font-size: 17px !important;
    line-height: 1.35 !important;

    margin: 0 0 8px 0 !important;

    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .hp-tool-card p,
  .hp-category-card p {
    display: block !important;

    font-size: 13px !important;
    line-height: 1.55 !important;

    margin: 0 !important;

    white-space: normal !important;
    word-break: break-word !important;
  }

  .hp-tool-icon {
    width: 34px !important;
    height: 34px !important;
    margin-bottom: 14px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .entry-content {
    overflow-x: hidden !important;
  }
}

.hp-section-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 768px) {
  .hp-category-grid .hp-category-card:nth-child(n+9) {
    display: none;
  }
}

/* =========================================
PLATFORM STATS
========================================= */

.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
  margin-top: 42px;
  margin-bottom: 36px;
}

.hp-stat-card {
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
}

.hp-stat-card strong {
  display: block;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--hp-accent);
}

.hp-stat-card span {
  color: var(--hp-text-soft);
  font-size: 15px;
  font-weight: 600;
}

@media (max-width:768px){

  .hp-stats-grid{
    grid-template-columns: repeat(2,1fr);
    gap:12px;
  }

  .hp-stat-card{
    padding:20px;
    border-radius:18px;
  }

  .hp-stat-card strong{
    font-size:28px;
  }

}


/* =========================================
HERO PREMIUM EFFECT
========================================= */

.entry-content > h1:first-of-type,
.hp-hero {
  position: relative;
  z-index: 1;
}

.entry-content > h1:first-of-type::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(59,130,246,.18),
    transparent 70%
  );

  top: -140px;
  left: -120px;
  z-index: -1;
  pointer-events: none;
}

.entry-content > h1:first-of-type::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(139,92,246,.12),
    transparent 70%
  );

  top: 80px;
  right: -100px;
  z-index: -1;
  pointer-events: none;
}

/* =========================================
HEADER REFINEMENT
========================================= */

.site-header {
  box-shadow: none;
}

.inside-header {
  max-width: 1320px;
  min-height: 72px;
  padding-left: 24px;
  padding-right: 24px;
}

.site-logo img {
  max-height: 38px !important;
}

.site-branding .main-title a,
.main-title a {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hp-text);
}

.main-navigation {
  background: transparent !important;
}

.main-navigation .main-nav ul li a {
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--hp-text-soft);
}

.main-navigation .main-nav ul li a:hover {
  background: var(--hp-muted);
  color: var(--hp-text);
}

.main-navigation .main-nav ul li.current-menu-item a {
  background: var(--hp-accent-soft);
  color: var(--hp-accent);
}

.menu-toggle {
  background: #fff !important;
  border: 1px solid var(--hp-border) !important;
  border-radius: 14px !important;
  color: var(--hp-text) !important;
}

@media (max-width: 768px) {
  .inside-header {
    min-height: 62px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-logo img {
    max-height: 30px !important;
  }

  .main-title a {
    font-size: 17px;
  }

  .main-navigation .main-nav ul li a {
    height: 42px;
    border-radius: 12px;
    font-size: 14px;
  }
}

/* =========================================
MOBILE POLISH
========================================= */

@media (max-width: 768px) {

  .hp-hero {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .hp-hero h1 {
    font-size: 38px !important;
    line-height: 1.02;
    letter-spacing: -0.05em;
    margin-bottom: 14px;
  }

  .hp-hero p {
    font-size: 14px;
    line-height: 1.6;
  }

  .hp-section {
    margin-top: 52px;
  }

  .hp-section-head h2,
  .hp-seo-content h2 {
    font-size: 32px !important;
    line-height: 1.05;
    margin-bottom: 12px;
  }

  .hp-tool-grid,
  .hp-category-grid,
  .hp-stats-grid {
    gap: 14px !important;
  }

  .hp-tool-card,
  .hp-category-card,
  .hp-stat-card {
    min-height: auto !important;
    padding: 18px !important;
  }

  .hp-stat-card strong {
    font-size: 28px;
  }

  .hp-category-card h3,
  .hp-tool-card h3 {
    font-size: 16px;
    line-height: 1.3;
  }

  .hp-tool-card p,
  .hp-category-card p {
    font-size: 13px;
  }

  .hp-seo-content {
    margin-top: 60px;
  }

  .hp-seo-content p,
  .hp-seo-content li {
    font-size: 15px;
    line-height: 1.7;
  }

  .hp-tags {
    gap: 8px;
  }

  .hp-tags span {
    font-size: 12px;
    padding: 7px 12px;
  }

  .hp-hero-search {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-hero-search button {
    width: 100%;
  }
}

/* =========================================
FINAL MOBILE LAYOUT FIX
========================================= */

@media (max-width: 768px) {

  .site-content,
  .grid-container,
  .inside-article {
    width: 100% !important;
    max-width: 100% !important;
  }

  .inside-article {
    padding: 28px 18px 72px !important;
  }

  .entry-content {
    padding: 0 !important;
  }

  .entry-content > h1:first-of-type {
    font-size: 28px !important;
    line-height: 1.12 !important;
    margin: 18px 0 34px !important;
  }

  .hp-hero {
    padding: 0 0 34px !important;
  }

  .hp-hero h1 {
    font-size: 28px !important;
    line-height: 1.12 !important;
    margin: 12px 0 12px !important;
  }

  .hp-hero p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
  }

  .hp-hero-search {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 18px !important;
  }

  .hp-hero-search input,
  .hp-hero-search button {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 14px !important;
  }

  .hp-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .hp-tags span {
    display: inline-flex !important;
    font-size: 12px !important;
    padding: 7px 10px !important;
  }

  .hp-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 24px 0 20px !important;
  }

  .hp-stat-card {
    padding: 16px 10px !important;
    border-radius: 16px !important;
  }

  .hp-stat-card strong {
    font-size: 22px !important;
  }

  .hp-stat-card span {
    font-size: 11px !important;
  }

  .hp-section {
    padding: 42px 0 !important;
    margin: 0 !important;
  }

  .hp-section-head {
    margin-bottom: 18px !important;
  }

  .hp-section-head h2,
  .hp-seo-content h2 {
    font-size: 26px !important;
    line-height: 1.15 !important;
    margin: 0 0 10px !important;
  }

  .hp-tool-grid,
  .hp-category-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .hp-tool-card,
  .hp-category-card {
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .hp-tool-card h3,
  .hp-category-card h3 {
    font-size: 15px !important;
    line-height: 1.35 !important;
    margin: 0 0 6px !important;
  }

  .hp-tool-card p,
  .hp-category-card p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  .hp-seo-content {
    padding-top: 44px !important;
    margin: 0 !important;
  }

  .hp-seo-content p,
  .hp-seo-content li {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
}

/* =========================================
FINAL MOBILE CARD HEIGHT FIX
========================================= */

@media (max-width: 768px) {

  .hp-tool-card,
  .hp-category-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
  }

  .hp-tool-grid,
  .hp-category-grid {
    row-gap: 12px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .hp-tool-icon {
    margin-bottom: 10px !important;
  }

  .hp-tool-card > *:last-child,
  .hp-category-card > *:last-child {
    margin-bottom: 0 !important;
  }

  .hp-section + .hp-section {
    margin-top: 0 !important;
  }

  .hp-section {
    border-top: 1px solid var(--hp-border) !important;
  }
}

/* Hide homepage default title */
.home .entry-header {
    display: none;
}

/* =========================================
COMPACT SPACING PASS
========================================= */

.inside-article {
  padding-top: 28px !important;
}

.hp-hero {
  padding: 34px 0 38px !important;
}

.hp-section {
  padding: 54px 0 !important;
}

.hp-section + .hp-section {
  margin-top: 0 !important;
}

.hp-section-head {
  margin-bottom: 22px !important;
}

.hp-stats-grid {
  margin-top: 28px !important;
  margin-bottom: 18px !important;
}

.hp-tool-grid {
  gap: 16px !important;
}

.hp-category-grid {
  margin-top: 22px !important;
  gap: 14px !important;
}

.hp-seo-content {
  padding-top: 58px !important;
}

.hp-seo-content h2 {
  margin-top: 42px !important;
}

.entry-content hr {
  margin: 48px 0 !important;
}

@media (max-width: 768px) {
  .hp-hero {
    padding: 18px 0 26px !important;
  }

  .hp-section {
    padding: 34px 0 !important;
  }

  .hp-seo-content {
    padding-top: 34px !important;
  }
}

/* =========================================
TIGHT DASHBOARD SPACING
========================================= */

.inside-article {
  padding-top: 12px !important;
  padding-bottom: 42px !important;
}

.hp-hero {
  padding: 18px 0 24px !important;
}

.hp-hero h1 {
  margin-bottom: 14px !important;
}

.hp-hero-search {
  margin-top: 20px !important;
}

.hp-tags {
  margin-top: 14px !important;
}

.hp-stats-grid {
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

.hp-section {
  padding: 36px 0 !important;
}

.hp-section-head {
  margin-bottom: 18px !important;
}

.hp-section-head h2 {
  margin-bottom: 6px !important;
}

.hp-tool-card {
  min-height: 138px !important;
  padding: 22px !important;
}

.hp-category-card {
  min-height: 92px !important;
  padding: 18px 22px !important;
}

.hp-seo-content {
  padding-top: 36px !important;
}

.hp-seo-content h2 {
  margin-top: 28px !important;
  margin-bottom: 12px !important;
}

.entry-content hr,
.hp-section {
  border-top-color: rgba(15,23,42,.055) !important;
}

@media (max-width: 768px) {
  .inside-article {
    padding-top: 16px !important;
  }

  .hp-section {
    padding: 28px 0 !important;
  }

  .hp-tool-card,
  .hp-category-card {
    padding: 16px !important;
  }
}

/* =========================================
PREMIUM FOOTER
========================================= */

.site-info {
  border-top: 1px solid var(--hp-border);
  background: #fff;
  padding: 34px 24px !important;
}

.hp-footer {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hp-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-footer-brand strong {
  font-size: 18px;
  color: var(--hp-text);
}

.hp-footer-brand span {
  font-size: 14px;
  color: var(--hp-text-muted);
}

.hp-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hp-footer-links a {
  color: var(--hp-text-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.hp-footer-links a:hover {
  color: var(--hp-accent);
}

@media (max-width: 768px) {
  .hp-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hp-footer-links {
    gap: 12px;
  }
}

/* =========================================
CATEGORY HERO
========================================= */

.hp-category-hero {
  padding: 42px 0 22px;
}

.hp-category-hero-inner {
  max-width: 920px;
}

.hp-category-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--hp-accent-soft);
  color: var(--hp-accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hp-category-hero h1 {
  font-size: 58px;
  line-height: .95;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.hp-category-hero p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--hp-text-soft);
}

@media (max-width: 768px) {

  .hp-category-hero {
    padding: 18px 0 8px;
  }

  .hp-category-hero h1 {
    font-size: 36px;
    line-height: 1.02;
  }

  .hp-category-hero p {
    font-size: 15px;
  }
}

/* =========================================
CATEGORY POSTS
========================================= */

.hp-category-posts {
  padding-bottom: 80px;
}

.hp-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  margin-top: 40px;
}

.hp-post-card {
  position: relative;
}

.hp-post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 260px;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--hp-border);
  text-decoration: none;
  transition: .18s ease;
}

.hp-post-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,.25);
  box-shadow: 0 18px 40px rgba(15,23,42,.06);
}

.hp-post-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--hp-accent-soft);
  color: var(--hp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 700;
}

.hp-post-card h2 {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hp-post-card p {
  color: var(--hp-text-soft);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hp-post-button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 14px;
  background: var(--hp-accent);
  color: #fff;
  font-weight: 700;
}

.hp-pagination {
  margin-top: 50px;
}

@media (max-width: 992px) {

  .hp-post-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

}

@media (max-width: 768px) {

  .hp-post-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hp-post-card-link {
    min-height: auto;
    padding: 22px;
  }

  .hp-post-card h2 {
    font-size: 24px;
  }

}

/* =========================================
SUBCATEGORY EXPLORER
========================================= */

.hp-category-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-subcategory-panel {
  margin-top: 22px;
  margin-bottom: 56px;
  padding: 32px;
  border-radius: 30px;
  background: #f6f7f9;
  border: 1px solid var(--hp-border);
}

.hp-subcategory-head {
  margin-bottom: 26px;
}

.hp-subcategory-head h2,
.hp-category-tools-head h2 {
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 10px 0 10px;
}

.hp-subcategory-head p {
  margin: 0;
  color: var(--hp-text-soft);
}

.hp-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.hp-subcategory-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 22px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--hp-border);
  text-decoration: none;
  transition: .18s ease;
}

.hp-subcategory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,90,95,.28);
  box-shadow: 0 14px 34px rgba(15,23,42,.05);
}

.hp-subcategory-card strong {
  display: block;
  color: var(--hp-text);
  font-size: 18px;
  margin-bottom: 6px;
}

.hp-subcategory-card span {
  color: var(--hp-text-muted);
  font-size: 14px;
}

.hp-subcategory-card em {
  font-style: normal;
  color: var(--hp-accent);
  font-size: 20px;
  font-weight: 800;
}

.hp-category-tools-section {
  margin-top: 20px;
}

.hp-category-tools-head {
  margin-bottom: 24px;
}

@media (max-width: 768px) {

  .hp-category-page {
    padding: 0 18px;
  }

  .hp-subcategory-panel {
    padding: 20px;
    border-radius: 22px;
    margin-bottom: 36px;
  }

  .hp-subcategory-grid {
    grid-template-columns: 1fr;
  }

  .hp-subcategory-head h2,
  .hp-category-tools-head h2 {
    font-size: 30px;
  }

  .hp-subcategory-card {
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
  }
}

/* =========================================
MODERN PAGINATION
========================================= */

.hp-pagination {
  margin-top: 46px;
}

.hp-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hp-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--hp-border);
  background: #fff;
  color: var(--hp-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
}

.hp-pagination .page-numbers.current {
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  color: #fff;
}

.hp-pagination a.page-numbers:hover {
  background: var(--hp-accent-soft);
  color: var(--hp-accent);
  border-color: rgba(255,90,95,.2);
}

.hp-pagination .next,
.hp-pagination .prev {
  padding: 0 18px;
}

@media (max-width: 768px) {
  .hp-pagination .nav-links {
    justify-content: center;
  }
}

/* global premium red palette */
:root{
  --hp-accent:#ff5a5f;
  --hp-accent-dark:#ff4b52;
  --hp-accent-soft:#fff1f2;
}


/* =========================================
MOBILE CATEGORY CARD FIX
========================================= */

@media (max-width: 768px) {

  .hp-post-grid {
    gap: 14px !important;
    margin-top: 18px !important;
  }

  .hp-post-card,
  .hp-post-card-link {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .hp-post-card-link {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .hp-post-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
  }

  .hp-post-card h2 {
    font-size: 19px !important;
    line-height: 1.25 !important;
    margin: 0 0 10px !important;
  }

  .hp-post-card p {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin: 0 0 16px !important;
  }

  .hp-post-button {
    height: 42px !important;
    border-radius: 12px !important;
    margin-top: 0 !important;
  }

  .hp-subcategory-panel {
    margin-top: 10px !important;
    margin-bottom: 28px !important;
  }

  .hp-category-tools-section {
    margin-top: 0 !important;
  }
}

/* =========================================
SINGLE TOOL PAGE
========================================= */

.hp-single-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-single-hero {
  padding: 46px 0 30px;
  max-width: 920px;
}

.hp-single-hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: .95;
  letter-spacing: -0.055em;
  margin: 16px 0 18px;
}

.hp-single-hero p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--hp-text-soft);
}

.hp-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.hp-single-content {
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 28px;
  padding: 34px;
}

.hp-single-content h2 {
  font-size: 36px;
  margin-top: 44px;
}

.hp-single-content h2:first-child {
  margin-top: 0;
}

.hp-single-content p,
.hp-single-content li {
  font-size: 16px;
  line-height: 1.8;
}

.hp-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border: 1px solid var(--hp-border);
  border-radius: 18px;
  overflow: hidden;
}

.hp-single-content th,
.hp-single-content td {
  border-bottom: 1px solid var(--hp-border);
  padding: 14px 16px;
  text-align: left;
}

.hp-single-content th {
  background: var(--hp-muted);
  font-weight: 800;
}

.hp-single-sidebar {
  position: sticky;
  top: 96px;
}

.hp-related-card {
  border: 1px solid var(--hp-border);
  border-radius: 24px;
  background: var(--hp-muted);
  padding: 24px;
}

.hp-related-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

.hp-related-card p {
  font-size: 14px;
  color: var(--hp-text-soft);
}

.hp-related-card a {
  display: inline-flex;
  margin-top: 12px;
  height: 42px;
  padding: 0 16px;
  align-items: center;
  border-radius: 12px;
  background: var(--hp-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
}

@media (max-width: 900px) {
  .hp-single-layout {
    grid-template-columns: 1fr;
  }

  .hp-single-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .hp-single-page {
    padding: 0 18px;
  }

  .hp-single-hero {
    padding: 24px 0 20px;
  }

  .hp-single-hero h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  .hp-single-content {
    padding: 20px;
    border-radius: 22px;
  }

  .hp-single-content h2 {
    font-size: 28px;
  }
}

/* Breadcrumb */
.hp-breadcrumb {
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 0 20px;
  font-size: 14px;
  color: #6b7280;
}

.hp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-breadcrumb li:not(:last-child)::after {
  content: "›";
  color: #c4c7cf;
  font-weight: 700;
}

.hp-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color .2s ease;
}

.hp-breadcrumb a:hover {
  color: #ff5a5f;
}

.hp-breadcrumb span[aria-current="page"] {
  color: #111827;
  font-weight: 700;
}

@media (max-width: 768px) {
  .hp-breadcrumb {
    margin-bottom: 16px;
    padding: 0 16px;
    font-size: 13px;
  }

  .hp-breadcrumb ol {
    gap: 6px;
  }
}

/* FAQ Accordion */
.hp-faq-title {
  margin-top: 42px;
}

.hp-faq-item {
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, .06);
  overflow: hidden;
  margin: 14px 0;
}

.hp-faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: #111827;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.hp-faq-question em {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 90, 95, .12);
  color: #ff5a5f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  flex: 0 0 auto;
}

.hp-faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: #4b5563;
  line-height: 1.75;
}

.hp-faq-item.is-open .hp-faq-answer {
  display: block;
}

@media (max-width: 768px) {
  .hp-faq-question {
    padding: 18px;
  }

  .hp-faq-answer {
    padding: 0 18px 18px;
  }
}

/* Dynamic Related Calculators */
.hp-related-dynamic {
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
  border: 1px solid rgba(255, 90, 95, .14);
  box-shadow: 0 18px 48px rgba(17, 24, 39, .08);
}

.hp-related-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.hp-related-card .hp-related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .05);
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}

.hp-related-card .hp-related-item:hover {
  transform: translateY(-2px);
  color: #ff5a5f;
  box-shadow: 0 14px 30px rgba(255, 90, 95, .13);
}

.hp-related-item span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 90, 95, .12);
  color: #ff5a5f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.hp-related-item em {
  font-style: normal;
  line-height: 1.35;
}

/* Related mobile polish */
@media (max-width: 768px) {
  .hp-related-dynamic {
    margin-top: 22px;
    padding: 22px;
    border-radius: 22px;
  }

  .hp-related-card .hp-related-item {
    min-height: 46px;
    padding: 12px;
    font-size: 13px;
  }

  .hp-related-item span {
    width: 26px;
    height: 26px;
  }
}

/* Table of Contents */
.hp-toc {
  margin: 28px 0 34px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
  border: 1px solid rgba(255, 90, 95, .14);
  box-shadow: 0 16px 42px rgba(17, 24, 39, .06);
}

.hp-toc strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
  color: #111827;
}

.hp-toc ol {
  margin: 0;
  padding-left: 20px;
}

.hp-toc li {
  margin: 8px 0;
  color: #ff5a5f;
}

.hp-toc a {
  color: #374151;
  text-decoration: none;
  font-weight: 700;
}

.hp-toc a:hover {
  color: #ff5a5f;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .hp-toc {
    padding: 18px;
    border-radius: 18px;
  }

  .hp-toc strong {
    font-size: 16px;
  }

  .hp-toc a {
    font-size: 14px;
  }
}

/* TOC polish */
.hp-toc {
  background:
    radial-gradient(circle at top left, rgba(255, 90, 95, .08), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}

.hp-toc ol {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
  counter-reset: hp-toc-counter;
}

.hp-toc li {
  counter-increment: hp-toc-counter;
  margin: 0;
}

.hp-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
}

.hp-toc a::before {
  content: counter(hp-toc-counter) ".";
  color: #ff5a5f;
  font-weight: 900;
  min-width: 18px;
}

.hp-toc a:hover {
  background: #fff;
  box-shadow: 0 10px 24px rgba(255, 90, 95, .10);
}
