/*-------------------------------------------------
                   ROOT VARIABLES
------------------------------------------------*/
:root {
  --primary-blue: #0052cc;
  --hero-gradient: linear-gradient(135deg, #0061ff 0%, #0033aa 100%);
  --bg-light: #f8fafc;
  --white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/*-------------------------------------------------
                    RESET & GLOBAL
------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

section {
  scroll-margin-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, p {
  word-wrap: break-word;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/*-------------------------------------------------
                        HERO
------------------------------------------------*/
.hero {
  background: var(--hero-gradient);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  margin-bottom: 3rem;
}

.hero-content {
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 800px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 760px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-highlight-item i,
.hero-highlight-item svg {
  width: 16px;
  height: 16px;
}

/*-------------------------------------------------
                  SHARED CONTENT BLOCKS
------------------------------------------------*/
.content-block {
  padding: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-label {
  display: inline-block;
  color: var(--primary-blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.section-heading h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1rem;
}

.info-section,
.featured-tools-section,
.related-tools-section {
  padding: 1rem 0 4.5rem;
}

/*-------------------------------------------------
                    FEATURED TOOLS
------------------------------------------------*/
.featured-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.featured-tool-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.featured-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 82, 204, 0.28);
}

.featured-tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.featured-tool-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.featured-tool-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/*-------------------------------------------------
                    LAYOUT GRID
------------------------------------------------*/
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-bottom: 4.5rem;
  align-items: start;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-size: 2rem;
  line-height: 1.2;
}

.category-intro-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.category-intro-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/*-------------------------------------------------
            SIMPLE CATEGORY DIRECTORY
------------------------------------------------*/
.simple-category-directory {
  display: grid;
  gap: 1.25rem;
}

.category-directory-block {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.category-directory-header {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.category-directory-header h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.category-directory-header p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.calculator-link-list {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1rem 0;
  padding-left: 1.15rem;
  list-style: disc;
}

.calculator-link-list li {
  color: var(--text-main);
}

.calculator-link-list a {
  color: var(--primary-blue);
  font-weight: 500;
}

.calculator-link-list a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.category-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.92rem;
}

.category-page-btn:hover {
  background: #eef4ff;
  border-color: rgba(0, 82, 204, 0.22);
}

/*-------------------------------------------------
                        SIDEBAR
------------------------------------------------*/
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cta-card {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.cta-card h3,
.stats-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.sidebar-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.trending-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  text-align: left;
}

.trending-item {
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 0.75rem;
}

.trending-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.trending-link {
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease;
}

.trending-link:hover {
  transform: translateX(4px);
}

.tool-name {
  display: block;
  font-size: 0.94rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 5px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-block;
}

.badge-hot {
  background: #fff1f0;
  color: #f5222d;
}

.badge-popular {
  background: #e6f7ff;
  color: #0052cc;
}

.stats-card {
  background: var(--white);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.stats-list {
  list-style: none;
  margin-top: 0.75rem;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.stats-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/*-------------------------------------------------
                    STEPS / INFO
------------------------------------------------*/
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--primary-blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/*-------------------------------------------------
                TWO COLUMN CONTENT
------------------------------------------------*/
.two-column-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.text-panel {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.text-panel h2,
.text-panel h3 {
  margin-bottom: 0.9rem;
}

.text-panel p + p {
  margin-top: 1rem;
}

.text-panel p {
  color: var(--text-muted);
}

.soft-panel {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.check-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-main);
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-blue);
  font-weight: 700;
}

/*-------------------------------------------------
                TRUST / DISCLAIMER
------------------------------------------------*/
.trust-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #eef4ff;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.trust-content p {
  color: var(--text-muted);
}

.trust-content p + p {
  margin-top: 0.9rem;
}

/*-------------------------------------------------
                        FAQ
------------------------------------------------*/
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.faq-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.faq-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.faq-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/*-------------------------------------------------
                    RELATED LINKS
------------------------------------------------*/
.related-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.related-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.related-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 82, 204, 0.28);
  box-shadow: var(--shadow-md);
  color: var(--primary-blue);
}

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

  .main-layout {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column-content {
    grid-template-columns: 1fr;
  }

  .related-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    margin: 0 20px;
    padding: 0;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-heading h2,
  .section-header h2 {
    font-size: 1.65rem;
  }

  .featured-tools-grid,
  .steps-grid,
  .related-links-grid {
    grid-template-columns: 1fr;
  }

  .category-directory-header {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .trust-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .eyebrow,
  .hero-highlight-item {
    font-size: 0.82rem;
  }

  .step-card,
  .faq-card,
  .text-panel,
  .cta-card,
  .stats-card,
  .featured-tool-card,
  .related-link-card,
  .trust-card,
  .category-intro-card,
  .category-directory-block {
    padding: 1.2rem;
  }

  .category-page-btn {
    width: 100%;
  }
}