.ad-section {
  display: flex;
  gap: 10px;
  padding: 30px 24px;
  background: #f2fcf0;
  align-items: stretch;
  margin-bottom: 20px;
}

/* ── Fixed Banner ── */
.greeting-sticky {
  flex: 0 0 300px;
  background: var(--qj-primary);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.greeting-sticky img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.greeting-text {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  align-items: center;
}
.greeting-text p {
  color: var(--qj-yellow);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

/* ── Ad Slider ── */
.ad-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ad-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 14px;
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
}

/* Fade edges — "going behind" effect */
.ad-viewport::before,
.ad-viewport::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ad-viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--qj-secondary) 10%, transparent);
}
.ad-viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--qj-secondary) 10%, transparent);
}

.ad-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: slide-ads 30s linear infinite;
  padding: 6px 0;
  align-items: center;
}
.ad-viewport:hover .ad-track {
  animation-play-state: paused;
}

.ad-card {
  flex: 0 0 230px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid #c5e0c5;
  background: #fff;
}
.ad-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes slide-ads {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .greeting-sticky {
    flex: 0 0 220px;
  }
  .greeting-sticky img {
    height: 180px;
  }
  .ad-card {
    flex: 0 0 220px;
    height: 240px;
  }
}
@media (max-width: 412px) {
  .ad-section { 
    flex-direction: column; 
  }
  .greeting-sticky { 
    flex: none; 
  }
  .ad-card { 
    flex: 0 0 150px; 
    height: 180px; 
  }
}