.page-news main,
.page-article-detail main {
  background: #f8fbfe;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #71869a;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.4px;
}

.section-kicker span {
  width: 34px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--primary-blue);
  border-radius: 99px;
}

.news-hero {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  background: linear-gradient(112deg, #fff 0%, #fff 45%, #eaf4fd 100%);
}

.news-hero__inner {
  position: relative;
  min-height: 248px;
}

.news-hero__copy {
  position: relative;
  z-index: 3;
  width: 47%;
  max-width: 590px;
  padding: 51px 0 42px;
}

.news-hero__copy h1 {
  margin: 0;
  color: var(--dark-text);
  font-size: clamp(42px, 4vw, 64px);
  letter-spacing: -2.8px;
  line-height: 1;
}

.news-hero__copy h1 span {
  color: var(--primary-blue);
}

.news-hero__copy > p:last-child {
  max-width: 550px;
  margin: 17px 0 0;
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.6;
}

.news-hero__image {
  position: absolute;
  z-index: 1;
  top: 0;
  right: -6vw;
  bottom: 0;
  width: 60%;
  overflow: hidden;
  clip-path: polygon(23% 0, 100% 0, 100% 100%, 8% 100%, 0 72%);
}

.news-hero__image::before,
.news-hero__image::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.news-hero__image::before {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.52) 18%, transparent 38%);
}

.news-hero__image::after {
  background: linear-gradient(0deg, rgba(6, 52, 91, 0.14), transparent 60%);
}

.news-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% 58%;
  filter: saturate(0.92) contrast(1.02);
}

.news-hero__tagline {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 30px;
  margin: 0;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2.3px;
  line-height: 1.75;
}

.news-hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 180px;
  height: 105px;
  background: linear-gradient(135deg, transparent 23%, #0076e8 24%, #0069dc 100%);
}

.news-catalog {
  padding: 26px 0 70px;
}

.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-filter {
  min-width: 78px;
  height: 36px;
  padding: 0 16px;
  color: var(--primary-blue-dark);
  background: #fff;
  border: 1px solid #a9d6ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.article-filter:hover,
.article-filter:focus-visible,
.article-filter.is-active {
  color: #fff;
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  box-shadow: 0 7px 17px rgba(0, 118, 232, 0.2);
}

.article-filter:active {
  transform: translateY(1px);
}

.article-search {
  display: flex;
  width: min(100%, 320px);
  height: 40px;
  flex: 0 0 320px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(21, 57, 86, 0.05);
}

.article-search:focus-within {
  border-color: #7fc0fb;
  box-shadow: 0 0 0 3px rgba(0, 118, 232, 0.1);
}

.article-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--primary-blue);
}

.article-search input {
  width: 100%;
  min-width: 0;
  color: var(--dark-text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.article-search input::placeholder {
  color: #8799a8;
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  overflow: hidden;
  height: 360px;
  min-height: 0;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(14, 48, 77, 0.08);
}

.article-image {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 178px;
  background: #dcebf6;
}

.article-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 31, 51, 0.2));
  pointer-events: none;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-card:hover .article-image img,
.featured-article:hover .article-image img {
  transform: scale(1.035);
}

.article-image--pipes img { object-position: 69% 50%; }
.article-image--machine img { object-position: 50% 62%; }
.article-image--stack img { object-position: 72% 48%; }
.article-image--tools img { object-position: 32% 72%; }
.article-image--yard img { object-position: 43% 22%; }
.article-image--plant img { object-position: 51% 28%; }
.article-image--detail img { object-position: 82% 62%; }

.article-badge {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  padding: 6px 10px;
  color: #fff;
  background: var(--primary-blue);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.featured-article__image {
  height: 100%;
  min-height: 0;
}

.featured-article__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
}

.article-date {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #7a8e9f;
  font-size: 10px;
  font-weight: 600;
}

.article-date svg {
  width: 14px;
  height: 14px;
  color: var(--primary-blue);
}

.featured-article h2,
.article-card h2 {
  margin: 0;
  color: var(--dark-text);
  letter-spacing: -0.45px;
  line-height: 1.18;
}

.featured-article h2 {
  font-size: clamp(23px, 2.25vw, 34px);
}

.featured-article__content > p:not(.article-date),
.article-card__body > p:not(.article-date) {
  color: var(--body-text);
}

.featured-article__content > p:not(.article-date) {
  margin: 13px 0 16px;
  font-size: 13px;
  line-height: 1.6;
}

.article-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  color: var(--primary-blue-dark);
  font-size: 11px;
  font-weight: 600;
}

.article-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.article-link:hover svg,
.article-link:focus-visible svg {
  transform: translateX(3px);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
}

.article-card {
  display: flex;
  height: 100%;
  overflow: hidden;
  min-width: 0;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(14, 48, 77, 0.06);
  transition: box-shadow var(--transition), transform var(--transition);
}

.article-card > .article-image {
  height: 210px;
  min-height: 210px;
}

.article-card:hover {
  box-shadow: 0 14px 30px rgba(14, 48, 77, 0.11);
  transform: translateY(-3px);
}

/* Progressive reveal keeps the article listing lively without blocking content. */
.article-reveal {
  opacity: 0;
  translate: 0 30px;
  scale: 0.985;
  transition:
    opacity 0.55s ease var(--article-delay, 0ms),
    translate 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--article-delay, 0ms),
    scale 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--article-delay, 0ms),
    box-shadow var(--transition),
    transform var(--transition);
  will-change: opacity, translate, scale;
}

.article-reveal--featured {
  translate: -34px 0;
}

.article-reveal--alternate {
  translate: 18px 30px;
}

.article-reveal.is-revealed {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  will-change: auto;
}

.article-card[hidden],
.featured-article[hidden] {
  display: none;
}

.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 17px 18px;
}

.article-card h2 {
  min-height: 2.6em;
  font-size: 17px;
  line-height: 1.3;
}

.article-card h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-card__body > p:not(.article-date) {
  min-height: 4.65em;
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 14px;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-card .article-link {
  margin-top: auto;
}

.article-empty {
  margin: 36px 0;
  padding: 24px;
  color: var(--body-text);
  background: #fff;
  border: 1px dashed #b9d0e2;
  border-radius: 10px;
  text-align: center;
}

.newsletter {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(250px, 1fr) minmax(400px, 0.9fr);
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding: 22px 24px;
  background: linear-gradient(100deg, #e8f6ff 0%, #eef8ff 55%, #d8edff 100%);
  border: 1px solid #c9e6fb;
  border-radius: 11px;
}

.newsletter__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: var(--primary-blue);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 118, 232, 0.2);
}

.newsletter__icon svg {
  width: 28px;
  height: 28px;
}

.newsletter__copy h2 {
  margin: 0;
  color: var(--primary-blue-dark);
  font-size: 20px;
}

.newsletter__copy p {
  margin: 3px 0 0;
  color: var(--body-text);
  font-size: 11px;
}

.newsletter__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.newsletter__form input {
  min-width: 0;
  height: 45px;
  padding: 0 14px;
  color: var(--dark-text);
  background: #fff;
  border: 1px solid #d3e3ef;
  border-radius: 7px;
  outline: 0;
}

.newsletter__form input:focus {
  border-color: #71b9f8;
  box-shadow: 0 0 0 3px rgba(0, 118, 232, 0.1);
}

.newsletter__form .button {
  min-height: 45px;
}

.newsletter__status {
  position: absolute;
  right: 24px;
  bottom: 3px;
  margin: 0;
  color: #16744b;
  font-size: 10px;
}

/* Detail article */
.article-detail-hero {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: #fff;
}

.article-detail-hero__inner {
  position: relative;
  min-height: 250px;
}

.article-detail-hero__copy {
  position: relative;
  z-index: 3;
  width: 48%;
  padding: 28px 0 25px;
}

.article-detail-hero h1 {
  max-width: 620px;
  margin: 0;
  color: var(--dark-text);
  font-size: clamp(34px, 3vw, 44px);
  letter-spacing: -2.2px;
  line-height: 1.02;
}

.article-detail-hero__copy > p:not(.section-kicker) {
  max-width: 560px;
  margin: 17px 0 0;
  color: var(--body-text);
  font-size: 13px;
  line-height: 1.58;
}

.article-detail-hero__image {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -7vw;
  bottom: auto;
  width: 60%;
  height: 138px;
  transform: translateY(-50%);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%, 7% 72%);
}

.article-detail-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #fff 0%, rgba(255, 255, 255, 0.7) 16%, transparent 39%);
}

.article-detail-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 55%;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  padding-top: 34px;
  padding-bottom: 64px;
}

.article-body {
  min-width: 0;
  color: #405668;
  font-size: 14px;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--border);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #758a9c;
  font-size: 11px;
  font-weight: 600;
}

.article-meta svg {
  width: 15px;
  height: 15px;
  color: var(--primary-blue);
}

.article-body > p {
  margin: 0 0 16px;
}

.article-body h2 {
  margin: 23px 0 7px;
  color: var(--dark-text);
  font-size: 20px;
  line-height: 1.25;
}

.article-body blockquote {
  position: relative;
  margin: 27px 0;
  padding: 22px 24px 22px 67px;
  color: #26465f;
  background: #eaf6ff;
  border-left: 4px solid var(--primary-blue);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.55;
}

.article-body blockquote::before {
  content: "“";
  position: absolute;
  top: 2px;
  left: 21px;
  color: var(--primary-blue);
  font-family: Georgia, serif;
  font-size: 62px;
  font-style: normal;
  line-height: 1;
}

.article-body blockquote cite {
  display: block;
  margin-top: 5px;
  color: #688092;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.article-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(14, 48, 77, 0.05);
}

.sidebar-card h2 {
  margin: 0 0 14px;
  color: var(--dark-text);
  font-size: 15px;
}

.share-list {
  display: flex;
  gap: 9px;
}

.share-list a,
.share-list button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--primary-blue);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.share-list a:hover,
.share-list a:focus-visible,
.share-list button:hover,
.share-list button:focus-visible,
.share-list button.is-copied {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
}

.share-list svg {
  width: 18px;
  height: 18px;
}

.latest-list {
  display: grid;
  gap: 13px;
}

.latest-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 11px;
}

.latest-item__image {
  width: 74px;
  height: 55px;
  overflow: hidden;
  border-radius: 6px;
  background: #e5f0f8;
}

.latest-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-item:nth-child(1) img { object-position: 72% 48%; }
.latest-item:nth-child(2) img { object-position: 26% 72%; }
.latest-item:nth-child(3) img { object-position: 55% 29%; }
.latest-item:nth-child(4) img { object-position: 38% 22%; }

.latest-item strong {
  display: block;
  color: var(--dark-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.latest-item span {
  display: block;
  margin-top: 4px;
  color: #8a9baa;
  font-size: 8px;
}

.latest-more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 15px;
  color: var(--primary-blue-dark);
  font-size: 10px;
  font-weight: 600;
}

.latest-more svg {
  width: 13px;
  height: 13px;
}

.article-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #eaf7ff 0%, #f7fbff 63%, #cfeaff 100%);
  border-top: 1px solid #d6e9f7;
}

.article-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.article-cta__copy .section-kicker {
  margin-bottom: 5px;
  font-size: 7px;
}

.article-cta__copy h2 {
  margin: 0;
  color: var(--primary-blue-dark);
  font-size: 26px;
}

.article-cta__copy p {
  margin: 4px 0 0;
  color: var(--body-text);
  font-size: 11px;
}

.article-search input,
.featured-article__content > p:not(.article-date),
.article-card__body > p:not(.article-date),
.newsletter__copy p,
.newsletter__status,
.latest-item span,
.article-meta span,
.article-cta__copy p {
  font-weight: 600;
}

@media (max-width: 1100px) {
  .news-hero__copy,
  .article-detail-hero__copy {
    width: 55%;
  }

  .news-hero__image,
  .article-detail-hero__image {
    right: -15vw;
    width: 64%;
  }

  .news-hero__tagline {
    right: 5px;
  }

  .news-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-search {
    width: 100%;
    flex-basis: auto;
  }

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

  .newsletter {
    grid-template-columns: 58px 1fr;
  }

  .newsletter__form {
    grid-column: 1 / -1;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .news-hero,
  .news-hero__inner {
    min-height: 390px;
  }

  .news-hero__copy {
    width: 100%;
    padding-top: 34px;
  }

  .news-hero__copy h1 {
    font-size: 42px;
  }

  .news-hero__copy > p:last-child {
    max-width: 90%;
    font-size: 13px;
  }

  .news-hero__image {
    top: auto;
    right: -20px;
    bottom: 0;
    width: calc(100% + 40px);
    height: 190px;
    clip-path: polygon(0 26%, 24% 0, 100% 0, 100% 100%, 0 100%);
  }

  .news-hero__image::before {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.42) 25%, transparent 62%);
  }

  .news-hero__tagline,
  .news-hero::after {
    display: none;
  }

  .news-catalog {
    padding-top: 22px;
    padding-bottom: 48px;
  }

  .article-filters {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .article-filter {
    flex: 0 0 auto;
  }

  .featured-article {
    grid-template-columns: 1fr;
    height: auto;
  }

  .featured-article__image {
    height: 215px;
    min-height: 215px;
  }

  .featured-article__content {
    padding: 22px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-image {
    min-height: 205px;
  }

  .article-card > .article-image {
    height: 205px;
  }

  .newsletter {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .newsletter__icon {
    width: 48px;
    height: 48px;
  }

  .newsletter__copy h2 {
    font-size: 17px;
  }

  .newsletter__form {
    grid-template-columns: 1fr;
  }

  .newsletter__status {
    position: static;
    grid-column: 1 / -1;
  }

  .article-detail-hero,
  .article-detail-hero__inner {
    min-height: 360px;
  }

  .article-detail-hero__copy {
    width: 100%;
    padding-top: 24px;
  }

  .article-detail-hero h1 {
    font-size: clamp(34px, 10vw, 45px);
  }

  .article-detail-hero__image {
    top: auto;
    right: -20px;
    bottom: 0;
    width: calc(100% + 40px);
    height: 115px;
    transform: none;
    clip-path: polygon(0 22%, 20% 0, 100% 0, 100% 100%, 0 100%);
  }

  .article-detail-hero__image::after {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.5) 25%, transparent 61%);
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 28px;
    padding-bottom: 44px;
  }

  .article-body {
    font-size: 13px;
  }

  .article-body h2 {
    font-size: 18px;
  }

  .article-body blockquote {
    padding-left: 52px;
  }

  .article-sidebar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .article-cta__inner {
    min-height: 190px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .article-cta__copy h2 {
    font-size: 23px;
  }
}

@media (max-width: 430px) {
  .news-hero__copy h1 {
    font-size: 37px;
    letter-spacing: -2px;
  }

  .section-kicker {
    font-size: 7px;
    letter-spacing: 1.8px;
  }

  .featured-article__image,
  .article-image {
    min-height: 185px;
  }

  .featured-article__image {
    height: 185px;
  }

  .article-card > .article-image {
    height: 185px;
  }

  .featured-article h2 {
    font-size: 22px;
  }

  .article-card h2 {
    font-size: 16px;
  }

  .newsletter {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter__form {
    width: 100%;
  }

  .article-detail-hero h1 {
    font-size: 34px;
    letter-spacing: -1.7px;
  }

  .article-detail-hero__copy > p:not(.section-kicker) {
    font-size: 12px;
  }

  .article-meta {
    gap: 11px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-reveal,
  .article-reveal--featured,
  .article-reveal--alternate {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transition: none;
  }
}
