/* ========================================
   News Section (Mobile first)
   ======================================== */

/* Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(1fr);
  gap: var(--space-8);
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-unit {
  padding: var(--space-4);
  border-radius: var(--radius, 8px);
  position: relative;
  overflow: hidden;
  background-color: var(--color-white);
  transition:
    transform 0.3s ease,
    all 0.3s ease;
}

@media (min-width: 1200px) {
  .news-unit {
    padding-inline: var(--space-24);
    padding-block: var(--space-6);
  }
}

.news-unit-link {
  display: block;
  color: inherit;
  text-decoration: none;
  min-height: 10rem;
}

@media (hover: hover) {
  .news-unit:hover {
    background-color: var(--color-gray-300);
  }

  .news-unit:hover .news-unit-arrow svg {
    transform: rotate(180deg);
  }
}

.news-unit-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-gray-900);
  margin-top: 3rem;
}

@media (min-width: 1200px) {
  .news-unit-content {
    margin-top: 0.5rem;
  }
}

.news-unit-category {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary, #0066cc);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-unit-date {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.news-unit-content p {
  font-size: 0.875rem;
  color: var(--color-gray-700);
  margin: 0;
}

.element {
  background-color: var(--color-gray-100);
  width: 5.5rem;
  height: 6rem;
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 0 0 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.element .arrow-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--color-white);
  color: var(--color-gray-900);
  cursor: pointer;

  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  text-align: center;
  text-decoration: none;

  z-index: 10;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.news-unit-arrow {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 2em;
  height: 2em;
  transition: all 0.4s ease-in-out;
}

.news-unit-arrow svg {
  fill: var(--color-gray-900);
  transition: transform 0.2s ease-in-out;
  transform: rotate(135deg);
}

.element:hover svg {
  transform: rotate(180deg);
}

.element::before {
  content: "";
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 40%;
  background-color: transparent;
  position: absolute;
  top: 0;
  right: 100%;
  box-shadow: 20px -20px var(--color-gray-100);
}

.element::after {
  content: "";
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 40%;
  background-color: transparent;
  position: absolute;
  top: 100%;
  right: 0;
  box-shadow: 20px -20px var(--color-gray-100);
}
