/* ============================================================
   DealWise - Featured Articles Section
   ============================================================ */

.deal-articles {
  padding: 100px 0;
  background: #f8f9fa;
}

.deal-articles__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.deal-articles__title {
  font-size: 42px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.deal-articles__nav {
  display: flex;
  gap: 12px;
}

.deal-articles__nav-prev,
.deal-articles__nav-next {
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.deal-articles__nav-prev:hover,
.deal-articles__nav-next:hover {
  background: #dca804;
  color: #fff;
  border-color: #dca804;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.3);
}

.deal-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.deal-articles__card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f5;
}

.deal-articles__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  border-color: transparent;
}

.deal-articles__img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #f0f0f5;
}

.deal-articles__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.deal-articles__card:hover .deal-articles__img img {
  transform: scale(1.06);
}

.deal-articles__content {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deal-articles__date {
  font-size: 12px;
  font-weight: 600;
  color: #dca804;
  margin-bottom: 12px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.deal-articles__name {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.deal-articles__card:hover .deal-articles__name {
  color: #dca804;
}

.deal-articles__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid #f0f0f5;
  margin-top: auto;
}

.deal-articles__source {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.deal-articles__source-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #dca804 0%, #c62828 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.deal-articles__read {
  font-size: 13px;
  font-weight: 600;
  color: #dca804;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.deal-articles__read-arrow {
  transition: transform 0.3s ease;
}

.deal-articles__card:hover .deal-articles__read-arrow {
  transform: translateX(4px);
}

.deal-articles__read:hover {
  color: #c62828;
  text-decoration: none;
}

/* Product Card Badge */
.deal-articles__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #dca804 !important;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.deal-articles__card--product .deal-articles__date {
  color: #dca804;
  font-weight: 700;
}

.deal-articles__card--product .deal-articles__source-avatar {
  background: linear-gradient(135deg, #96cc00 0%, #dfbd00 100%);
}

/* Scrollable grid for horizontal nav */
[data-articles-grid] {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 20px;
}

[data-articles-grid]::-webkit-scrollbar {
  display: none;
}

[data-articles-grid] > .deal-articles__card {
  flex: 0 0 calc((100% - 56px) / 3);
  min-width: calc((100% - 56px) / 3);
}

@media (max-width: 1199px) {
  [data-articles-grid] > .deal-articles__card {
    flex: 0 0 calc((100% - 28px) / 2);
    min-width: calc((100% - 28px) / 2);
  }
}

@media (max-width: 639px) {
  [data-articles-grid] > .deal-articles__card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

@media (max-width: 1199px) {
  .deal-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deal-articles__title {
    font-size: 36px;
  }
}

@media (max-width: 639px) {
  .deal-articles {
    padding: 70px 0;
  }

  .deal-articles__grid {
    grid-template-columns: 1fr;
  }

  .deal-articles__title {
    font-size: 28px;
  }

  .deal-articles__header {
    gap: 16px;
  }

  .deal-articles__nav-prev,
  .deal-articles__nav-next {
    width: 42px;
    height: 42px;
  }
}