/* Homepage news "view all" button styles only */
.news-footer {
  display: flex;
  justify-content: center;
  margin-top: 0;
  padding: 0 20px;
  position: relative;
}

.news-view-all {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 28px 64px;
  text-decoration: none;
  border-radius: 20px;
  overflow: visible;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 20px 60px rgba(15, 23, 42, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 40px rgba(59, 130, 246, 0.08);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Decorative lines */
.news-view-all__line {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.5) 20%,
    rgba(59, 130, 246, 0.8) 50%,
    rgba(59, 130, 246, 0.5) 80%,
    transparent 100%);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
  border-radius: 2px;
}

.news-view-all__line--top {
  top: 0;
}

.news-view-all__line--bottom {
  bottom: 0;
}

/* Button content */
.news-view-all__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
}

.news-view-all__text {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    text-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.news-view-all__text::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 1) 0%, 
    rgba(147, 197, 253, 1) 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Arrow */
.news-view-all__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15) 0%, 
    rgba(147, 197, 253, 0.12) 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.news-view-all__arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.2) 0%, 
    rgba(147, 197, 253, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 50%;
}

.news-view-all__arrow .news-view-all__arrow-icon {
  width: 22px;
  height: 22px;
  color: rgba(59, 130, 246, 0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

/* Hover effects */
.news-view-all:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 
    0 32px 80px rgba(15, 23, 42, 0.18),
    0 16px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 0 60px rgba(59, 130, 246, 0.15);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.12) 100%);
}

.news-view-all:hover .news-view-all__line {
  opacity: 1;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.7) 20%,
    rgba(59, 130, 246, 1) 50%,
    rgba(59, 130, 246, 0.7) 80%,
    transparent 100%);
  height: 2.5px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.news-view-all:hover .news-view-all__text {
  color: rgba(59, 130, 246, 1);
  text-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.news-view-all:hover .news-view-all__text::after {
  width: 100%;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.6);
}

.news-view-all:hover .news-view-all__arrow {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.25) 0%, 
    rgba(147, 197, 253, 0.2) 100%);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateX(6px);
  box-shadow: 
    0 12px 32px rgba(59, 130, 246, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 20px rgba(59, 130, 246, 0.4);
}

.news-view-all:hover .news-view-all__arrow::before {
  opacity: 1;
}

.news-view-all:hover .news-view-all__arrow .news-view-all__arrow-icon {
  color: rgba(59, 130, 246, 1);
  transform: translateX(3px);
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.5));
}

/* Active state */
.news-view-all:active {
  transform: none;
}

.news-view-all:active .news-view-all__arrow {
  transform: translateX(8px) scale(0.96);
}

@media (max-width: 768px) {
  .news-footer {
    margin-top: 0;
  }

  .news-view-all {
    padding: 20px 48px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  }

  .news-view-all__content {
    gap: 16px;
  }

  .news-view-all__arrow {
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
  }
}

@media (max-width: 480px) {
  .news-view-all {
    padding: 18px 40px;
  }
  
  .news-view-all__content {
    gap: 12px;
  }
  
  .news-view-all__arrow {
    width: 40px;
    height: 40px;
  }
  
  .news-view-all__arrow .news-view-all__arrow-icon {
    width: 18px;
    height: 18px;
  }
}
