/* ==========================
   Coinminingzone Ad Styles
   ========================== */

.ad-slot {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ad-box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease-in-out;
  padding: 10px;
  text-align: center;
}

.ad-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ad-box img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  transition: 0.3s ease;
}

.ad-box img:hover {
  opacity: 0.9;
}

.ad-box iframe {
  width: 100%;
  height: 160px;
  border: none;
  border-radius: 8px;
}

.ad-box p {
  margin: 0;
  padding: 5px;
  color: #333;
}

/* Position specific styling */
.position-header .ad-box {
  text-align: center;
}

.position-sidebar .ad-box {
  max-width: 100%;
  margin: 0 auto;
}

.position-footer .ad-box {
  background: #f8f9fa;
}

.position-between_posts .ad-box {
  background: #f9f9ff;
  border-left: 3px solid #007bff;
}

@media (max-width: 768px) {
  .ad-box {
    padding: 8px;
  }
  .ad-box iframe {
    height: 120px;
  }
}
/* ====== Ad Blocks ====== */
.ad-slot {
  text-align: center;
  margin: 20px 0;
}

.ad-slot img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-slot img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Each ad separated nicely */
.single-ad {
  margin-bottom: 15px;
}

/* Position-based optional styling */
.ad-header,
.ad-footer {
  margin: 30px 0;
}

.ad-sidebar {
  margin: 15px auto;
}

.ad-between_posts {
  margin: 25px 0;
  padding: 10px;
  background: #f9f9f9;
  border: 1px dashed #ddd;
  border-radius: 8px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .ad-slot img {
    border-radius: 8px;
  }
  .ad-slot {
    margin: 15px 0;
  }
}
