* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f3f4f6;
  color: #111827;
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #1d4ed8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 18px;
  background: #ffffff;
}

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

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

nav a {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.article-card,
.related-posts,
.faq-section,
.comments-section,
.tool-shell {
  background: #ffffff;
  border-radius: 18px;
  margin-bottom: 24px;
  overflow: hidden;
}

.article-content,
.related-posts,
.faq-section,
.comments-section,
.tool-shell {
  padding: 28px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.eyebrow {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 12px;
}

h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 10px;
}

p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 15px;
}

.intro {
  font-size: 16px;
  margin-bottom: 18px;
}

.ad-space {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  padding: 16px;
  margin: 24px 0;
}

.back-link {
  margin-top: 22px;
}

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

.mini-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.mini-card h3,
.mini-card p,
.mini-card a {
  padding-left: 14px;
  padding-right: 14px;
}

.mini-card h3 {
  margin-top: 14px;
}

.mini-card p {
  font-size: 14px;
  margin-bottom: 10px;
}

.mini-card a {
  display: inline-block;
  padding-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
}

.faq-item {
  border-top: 1px solid #e5e7eb;
  padding: 14px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid #e5e7eb;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  position: relative;
  padding-right: 22px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: #374151;
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin-top: 12px;
  margin-bottom: 0;
}

.cta-strip {
  background: #dff6f7;
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.cta-strip h2 {
  margin: 0 0 8px;
}

.cta-strip p {
  margin: 0;
}

.cta-button,
.comment-button {
  display: inline-block;
  background: #0f1f63;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.cta-button:hover,
.comment-button:hover {
  text-decoration: none;
  opacity: 0.92;
}

.comment-box {
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  margin-bottom: 14px;
  background: #ffffff;
}

footer {
  max-width: 1100px;
  margin: 0 auto;
  background: #0f1f63;
  color: #ffffff;
  text-align: center;
  padding: 22px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.footer-links a,
footer p {
  color: #ffffff;
  font-size: 12px;
}

/* Service landing page hero */
.service-hero {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 48px 24px;
  background: linear-gradient(180deg, #eefcfd 0%, #ffffff 100%);
  border-radius: 0 0 24px 24px;
  text-align: center;
}

.service-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.service-hero .eyebrow {
  margin-bottom: 12px;
}

.service-hero h1 {
  margin-bottom: 16px;
}

.service-hero .intro {
  max-width: 720px;
  margin: 0 auto 24px;
}

/* Tool page hero */
.tool-hero {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 48px 24px;
  background: linear-gradient(180deg, #eefcfd 0%, #ffffff 100%);
  border-radius: 0 0 24px 24px;
  text-align: center;
}

.tool-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.tool-hero .intro {
  max-width: 720px;
  margin: 0 auto 24px;
}

.tool-shell-header {
  margin-bottom: 24px;
}

.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.tool-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-field span {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.tool-field input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #111827;
  background: #ffffff;
}

.tool-output {
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 20px;
  background: #f9fafb;
}

.tool-output h3 {
  margin-bottom: 10px;
}

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

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .tool-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header,
  main,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .article-content,
  .related-posts,
  .faq-section,
  .comments-section,
  .tool-shell {
    padding: 20px;
  }

  .service-hero,
  .tool-hero {
    padding: 36px 18px;
    border-radius: 0 0 18px 18px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 17px;
  }
}
