/* Ad section styling */
.ad-section {
  border-top: 1px dashed #999;
  border-bottom: 1px dashed #999;
  padding: 20px 30px;
  margin: 20px 0;
  background: rgba(0, 0, 0, 0.02);
}

.ad-title {
  font-size: 12px;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 15px;
}

.ad-wrapper {
  min-height: 64px;
  min-width: 250px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Fallback message - shows above ad space, hidden when ad loads */
.ad-fallback {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #999;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Hide fallback when explicitly marked (JS controlled) */
.ad-fallback.hidden {
  display: none;
}

.ad-fallback a {
  color: #666;
  text-transform: lowercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-style: dashed;
}

.ad-fallback a:hover {
  color: #333;
  font-weight: bold;
  letter-spacing: 2px;
}

/* Ad placeholder - visible by default, hidden only when explicitly marked unfilled */

[data-ad-placeholder]{
    opacity: 1;
    max-height: 360px;
    transition: opacity 1.8s ease, max-height 1.8s ease;
}

[data-ad-placeholder].ad-placeholder-hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 1.8s ease, max-height 1.8s ease;
}

/* AdSense responsive ads */
.adsbygoogle {
  display: block;
  text-align: center;
  width: 100%;
  min-width: 100px;
  min-height: 64px;
}