/* Container: 800px Wide on Desktop */
.ad-container {
  width: 100%;
  max-width: 95%; 
  margin: 2.5rem auto;
  font-family: 'Inter', -apple-system, sans-serif;
  position: relative;
}

@media (min-width: 850px) {
  .ad-container {
    max-width: 800px; /* Locked at 800px Breadth */
  }
}

/* THE BOX: Fixed height to stop UI shifting */
.ad-link {
  display: block;
  width: 100%;
  height: 250px; /* Mobile */
  background-color: #0f172a; /* Dark sleek placeholder */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (min-width: 850px) {
  .ad-link {
    height: 350px; /* Desktop Height */
  }
}

.ad-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ad-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; 
  opacity: 0.9; /* Slightly dimmed to make text more readable */
  transition: opacity 0.5s ease-in-out;
}

/* PERMANENT BRANDING BADGE */
.ad-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #25694d; /* Professional Blue */
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Timer Styling */
.ad-timer {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  padding: 5px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
