/*
 * iToolsEra Guide System v1.0.0
 * Guide-specific presentation only. Shared homepage/directory styles remain
 * in assets/css/homepage.css.
 */

.guide-card {
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.guide-card:hover {
  border-color: #c9d4ec !important;
  box-shadow: 0 8px 24px rgba(0, 35, 111, 0.08) !important;
  transform: translateY(-2px);
}

.guide-card-image {
  display: block;
  height: 175px;
  object-fit: cover;
  width: 100%;
}

.guide-card-category {
  margin-bottom: 7px;
}

.guide-card-title {
  color: #0b1736;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.4;
  margin-bottom: 9px;
}

.guide-card-title a {
  color: inherit;
  text-decoration: none;
}

.guide-card-title a:hover {
  color: #1433d1;
}

.guide-card-excerpt {
  color: #60708f;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.guide-card-meta {
  color: #8a96aa;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 6px 14px;
  margin-bottom: 12px;
}

.guide-article-header {
  max-width: 940px;
}

.guide-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin: 7px 0 14px;
  background: var(--homepage-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.guide-lead {
  color: #60708f;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 17px;
  max-width: 820px;
}

.guide-meta {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 7px 18px;
}

.guide-meta strong {
  color: #334155;
}

.guide-featured-image {
  overflow: hidden;
}

.guide-featured-image img {
  border-radius: 10px;
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.guide-content {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.82;
}

.guide-content > :first-child {
  margin-top: 0;
}

.guide-content p {
  margin-bottom: 1.2rem;
  color: var(--homepage-muted);
}

.guide-content h2,
.guide-content h3,
.guide-content h4 {
  color: #0f172a;
  line-height: 1.35;
}

.guide-content h2 {
  color: var(--homepage-text);
  font-size: 1.7rem;
  font-weight: 800;
  margin: 5px 0 7px;
}

.guide-content h3 {
  color: var(--homepage-text);
  font-size: 1.28rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
}

.guide-content h4 {
  font-size: 1.1rem;
  margin: 1.7rem 0 0.7rem;
}

.guide-content ul,
.guide-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.guide-content li {
  margin-bottom: 0.48rem;
}

.guide-content img {
  border-radius: 8px;
  height: auto;
  max-width: 100%;
}

.guide-content table {
  border-collapse: collapse;
  margin: 1.4rem 0;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.guide-content th,
.guide-content td {
  border: 1px solid #dfe5f0;
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}

.guide-content th {
  background: #f7f9fd;
  color: #0f172a;
  font-weight: 700;
}

.guide-content blockquote {
  background: #f8fafc;
  border-left: 4px solid #1433d1;
  margin: 1.5rem 0;
  padding: 14px 18px;
}

.guide-content pre {
  background: #0f172a;
  border-radius: 8px;
  color: #f8fafc;
  overflow-x: auto;
  padding: 14px 16px;
}

.guide-content code {
  word-break: break-word;
}

.guide-section-block {
  border-top: 1px solid #eef2f7;
  margin-top: 3rem;
  padding-top: 2rem;
}

.guide-section-block h2 {
  color: #0b1736;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 5px 0 18px;
}

.guide-section-block h2 span {
  background: linear-gradient(90deg, #691eeb 0%, #1433d1 52%, #00236f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.guide-faq-answer {
  color: #475569;
  line-height: 1.7;
}

.guide-related-card {
  background: #fff;
  border: 1px solid #dfe5f0;
  border-radius: 10px;
  color: inherit;
  display: block;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.guide-related-card:hover {
  border-color: #c9d4ec;
  box-shadow: 0 8px 24px rgba(0, 35, 111, 0.08);
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

.guide-related-card img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.guide-related-card-body {
  padding: 18px;
}

.guide-related-card-body h3 {
  color: #0b1736;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 5px 0 8px;
}

.guide-related-card-body p {
  color: #60708f;
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 10px;
}

@media (max-width: 767.98px) {
  .guide-title {
    font-size: 2rem;
  }

  .guide-lead {
    font-size: 1rem;
  }

  .guide-content {
    font-size: 1rem;
  }

  .guide-section-block {
    margin-top: 2.4rem;
    padding-top: 1.7rem;
  }
}

@media (max-width: 575.98px) {
  .guide-card-image {
    height: 155px;
  }

  .guide-title {
    font-size: 1.72rem;
  }

  .guide-meta {
    line-height: 1.7;
  }

  .guide-content h2 {
    font-size: 1.35rem;
  }

  .guide-content h3 {
    font-size: 1.18rem;
  }
}
