/* ============ Global Reset ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============ Root Variables ============ */
:root {
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --card-bg: #ffffff;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-strong: #1d4ed8;
  --text: #111827;
  --muted: #6b7280;
  --border-subtle: #e5e7eb;
  --error: #dc2626;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
  --transition-fast: 0.18s ease-out;
  --max-width: 1100px;
}

/* ============ Base Styles ============ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ============ Layout ============ */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.main-content {
  flex: 1;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

/* LOGO IMAGE STYLE */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 65px;        /* Logo size */
  width: auto;         /* Keep proportions */
  object-fit: contain; /* Prevent stretching */
  display: block;
}


/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Nav Button */
.nav-toggle {
  display: none;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #ffffff;
  color: var(--text);
  font-size: 0.8rem;
}

/* ============ Hero Section ============ */
.hero {
  padding: 1.8rem 0 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.7rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  font-size: 0.78rem;
  color: #1d4ed8;
  margin-bottom: 0.7rem;
}

.hero-badge span {
  display: inline-flex;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 0.6rem;
  color: #111827;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  background: var(--accent-strong);
}

.btn-ghost {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta span::before {
  content: "•";
  color: var(--accent);
}

/* Hero side card */
.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-chip {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.metric-card {
  padding: 0.5rem 0.55rem;
  border-radius: var(--radius-md);
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.metric-card:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.08rem;
}

.metric-value {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============ Section Generic ============ */
.section {
  padding: 1.6rem 0 1.8rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.15rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ============ Tool Grid (Home) ============ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--text);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.tool-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #bfdbfe;
  background: #f9fbff;
}

.tool-card-title {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.tool-card-tag {
  font-size: 0.72rem;
  display: inline-flex;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.tool-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============ Page Layout (Tool pages) ============ */
.page-header {
  padding: 1.4rem 0 0.9rem;
}

.breadcrumbs {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.page-title {
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 38rem;
}

.tool-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ============ Card ============ */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

/* ============ Forms & Inputs ============ */
.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.label {
  font-size: 0.8rem;
  color: var(--muted);
}

input[type="number"],
input[type="text"],
textarea,
select {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.6rem;
  color: var(--text);
  font-size: 0.86rem;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
  background: #ffffff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.helper {
  font-size: 0.74rem;
  color: var(--muted);
}

/* ============ Result Box ============ */
.result-box {
  margin-top: 0.6rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.86rem;
}

.result-main {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.result-highlight {
  font-weight: 600;
  color: var(--accent-strong);
}

.result-muted {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Error Message */
.error {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--error);
}

/* ============ SEO / Content Block ============ */
.content-block {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.content-block h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.content-block p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.content-block ul {
  padding-left: 1.1rem;
  margin-bottom: 0.6rem;
}

.content-block li {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.content-block a {
  color: var(--accent);
  text-decoration: none;
}

.content-block a:hover {
  text-decoration: underline;
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 0.9rem 0 1.1rem;
  margin-top: auto;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ============ Responsive ============ */
@media (max-width: 768px) {

  .logo-img {
  height: 50px;        /* Logo size */
  width: auto;         /* Keep proportions */
  object-fit: contain; /* Prevent stretching */
  display: block;
}

  .nav-links {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: 3.1rem;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
  }

  .nav-toggle {
    margin-right: 10px;
    display: inline-flex;
  }

  .hero-grid,
  .tool-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 1.3rem;
  }

  .hero-card {
    margin-top: 0.7rem;
  }
}


.image-section {
  padding: 1.8rem 0;
  text-align: center;
}

.img-heading {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: #333;
}

.img-sub {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.img-box {
  max-width: 400px;
  margin: 0 auto;
}

.img-box img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.img-meta {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}


/* BLOG PAGE STYLING */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.blog-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-decoration: none;
  color: #222;
  border: 1px solid #e5e5e5;
  transition: all 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: #4a90e2;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.blog-card-img img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  background: #f9f9f9;
  padding: 8px;
}

.blog-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 12px 0 6px;
  color: #333;
}

.blog-card-body p {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}
