/* SPEEDPLUS News (blog) — listing + article detail. Standalone stylesheet,
   own class names (sp-news-*) so it never collides with the base theme's
   article/card CSS still used elsewhere (e.g. related-product blocks). */

.sp-news {
  max-width: 1400px;
  margin: 0 auto;
  padding: 9rem 2.5rem 6rem;
}

.sp-news-header {
  margin-bottom: 3rem;
}

.sp-news-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 0.75rem;
}

.sp-news-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 1px;
  color: #0d0d0d;
  margin: 0;
  line-height: 1;
}

.sp-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.sp-news-card {
  display: block;
  background: rgba(13, 13, 13, 0.03);
  border: 1px solid rgba(13, 13, 13, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s cubic-bezier(0.65, 0.05, 0, 1), border-color 0.5s ease;
}

.sp-news-card:hover {
  transform: translateY(-5px);
  border-color: #BFFF00;
}

.sp-news-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(13, 13, 13, 0.06);
}

.sp-news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.sp-news-card:hover .sp-news-card__image img {
  transform: scale(1.06);
}

.sp-news-card__body {
  padding: 1.75rem;
}

.sp-news-card__date {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9ecc00;
}

.sp-news-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: #0d0d0d;
  margin: 0.6rem 0 0.75rem;
  line-height: 1.15;
}

.sp-news-card__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555555;
  margin: 0;
}

.sp-news-empty {
  font-family: 'Inter', sans-serif;
  color: #888888;
  padding: 3rem 0;
}

.sp-news-pagination {
  margin-top: 4rem;
}

/* ====== Article detail ====== */

.sp-article-hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: rgba(13, 13, 13, 0.06);
}

.sp-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem 6rem;
}

.sp-article-header {
  margin-bottom: 3rem;
}

.sp-article-date {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9ecc00;
  margin-bottom: 1.1rem;
}

.sp-article-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: 0.5px;
  line-height: 1.08;
  color: #0d0d0d;
  margin: 0;
}

.sp-article-share {
  margin: 2.5rem 0 0;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
}

.sp-article-body {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2a2a2a;
}

.sp-article-body p {
  margin: 0 0 1.75rem;
}

.sp-article-body h2,
.sp-article-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.5px;
  color: #0d0d0d;
  margin: 3rem 0 1.25rem;
  line-height: 1.15;
}

.sp-article-body h2 {
  font-size: 2rem;
}

.sp-article-body h3 {
  font-size: 1.5rem;
}

.sp-article-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0 2rem;
}

.sp-article-body a {
  color: #0d0d0d;
  text-decoration: underline;
  text-decoration-color: #BFFF00;
  text-underline-offset: 3px;
}

.sp-article-body blockquote {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid #BFFF00;
  font-style: italic;
  color: #555555;
}

.sp-article-back {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(13, 13, 13, 0.08);
  text-align: center;
}

.sp-article-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0d0d0d;
  text-decoration: none;
}

.sp-article-back a:hover {
  color: #9ecc00;
}

.sp-article-back svg {
  transform: rotate(180deg);
  width: 12px;
  height: 12px;
}

/* ====== Responsive ====== */

@media screen and (max-width: 1200px) {
  .sp-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .sp-news {
    padding: 7rem 1.25rem 4rem;
  }
  .sp-news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sp-article-hero {
    aspect-ratio: 4 / 3;
  }
  .sp-article {
    padding: 3.5rem 1.25rem 4rem;
  }
  .sp-article-header {
    margin-bottom: 2rem;
  }
  .sp-article-share {
    margin-top: 2rem;
    padding-bottom: 2rem;
  }
  .sp-article-body {
    font-size: 1rem;
  }
}
