.recommended-section {
  background: #ffffff;
  border-top: 4px solid #1976d2;
  padding: 20px 40px;
  margin: 0 0 40px;
}

.recommended-title {
  margin-bottom: 20px;
  font-size: 30px;
  color: #1976d2;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.recommended-grid {
  display: flex;
  width: 100%;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
  margin: 0 auto;
  max-width: 1320px;
}

.recommended-item {
  flex-shrink: 0;
  padding: 1px;
  border: 2px solid rgba(25, 118, 210, 0.9);
  border-radius: 4px;
  text-align: center;
  margin-bottom: 30px;
}

.recommended-item:hover {
  cursor: pointer;
  opacity: 0.8;
}

.recommended-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.recommended-caption {
  font-size: 14px;
  font-weight: 600;
  margin-top: 5px;
  color: #FFFFFF;
  line-height: 1.4;
  max-width: 150px;
  background: linear-gradient(135deg, #1976d2, #42a5f5);
  border-radius: 4px;
  padding: 4px;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 66px;

}

.recommended-button {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  background-color: rgba(25, 118, 210, 0.9);
  padding: 6px 8px;
  border-color: transparent;
  border-radius: 4px;
  max-width: 150px;
  text-align: center;
}

.recommended-button:hover {
  background-color: #1976d2;
}

@media screen and (max-width: 992px) {
  .recommended-section {
    margin: 0 0 16px;
  }
  
  .recommended-item img {
    width: 100px;
    height: 100px;
  }
  
  .recommended-caption {
    font-size: 13px;
    max-width: 100px;
    -webkit-line-clamp: 2;
    height: 44px;
  }
  
  .recommended-button {
    max-width: 100px;
    padding: 4px 8px;
  }
}

@media screen and (max-width: 768px) {
  .recommended-section {
    padding: 20px 20px;
  }
  
  .recommended-title {
    font-size: 26px;
  }
}