@import url("https://fonts.googleapis.com/css2?family=Gabarito:wght@400;700;900&display=swap");

.alvion-news,
.alvion-news * {
  box-sizing: border-box;
}

.alvion-news {
  --red: #ee2529;
  --dark: #231f20;
  --white: #ffffff;
  --soft: #f5f4f4;
  --gray: #746f70;
  --line: rgba(35, 31, 32, 0.14);
  width: 100%;
  overflow: hidden;
  color: var(--dark);
  background: var(--white);
  font-family: "Gabarito", sans-serif;
}

.alvion-news__container {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(88px, 11vw, 140px) 0;
}

.alvion-news {
  position: relative;
  isolation: isolate;
}

.alvion-news::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(35, 31, 32, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 31, 32, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.alvion-news__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.alvion-news__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.alvion-news__eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

.alvion-news__title {
  margin: 0;
  color: var(--dark);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.alvion-news__title span {
  color: var(--red);
}

.alvion-news__all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s ease, color 0.3s ease;
}

.alvion-news__all svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.3s ease;
}

.alvion-news__all:hover {
  color: var(--dark);
  transform: translateY(-1px);
}

.alvion-news__all:hover svg {
  transform: translateX(4px);
}

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

.alvion-news__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.alvion-news__card:hover {
  border-color: var(--dark);
  box-shadow: 0 22px 50px rgba(35, 31, 32, 0.1);
  transform: translateY(-6px);
}

.alvion-news__media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.35 / 1;
  background: var(--soft);
}

.alvion-news__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.alvion-news__card:hover .alvion-news__image {
  transform: scale(1.05);
}

.alvion-news__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(35, 31, 32, 0.15);
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.alvion-news__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 20px 24px;
}

.alvion-news__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.alvion-news__index {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.alvion-news__cat,
.alvion-news__date {
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alvion-news__cat::after {
  content: "·";
  margin-left: 10px;
  color: rgba(35, 31, 32, 0.28);
}

.alvion-news__card-title {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.alvion-news__card-title a {
  color: var(--dark);
  text-decoration: none;
}

.alvion-news__card-title a:hover {
  color: var(--red);
}

.alvion-news__excerpt {
  margin: 14px 0 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

.alvion-news__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.alvion-news__more svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.3s ease;
}

.alvion-news__more:hover svg {
  transform: translateX(4px);
}

.alvion-news__empty {
  margin: 0;
  padding: 36px 24px;
  border: 1px dashed var(--line);
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

.alvion-news__footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 5vw, 52px);
}

.alvion-news__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
  padding: 14px 20px;
  border: 2px solid var(--red);
  color: var(--white);
  background: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.alvion-news__cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.alvion-news__cta:hover {
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
}

/* Full /news/ archive page */
.alvion-news--archive {
  padding: clamp(48px, 7vw, 90px) 0 clamp(90px, 11vw, 150px);
}

.alvion-news--archive .alvion-news__grid {
  gap: 22px;
}

@media (max-width: 1050px) {
  .alvion-news__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .alvion-news__container {
    width: min(100% - 36px, 1360px);
  }

  .alvion-news__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .alvion-news__grid {
    grid-template-columns: 1fr;
  }

  .alvion-news__cta {
    width: 100%;
  }
}