h3 {
  font-size: 1.5rem;
}

/* Base Ad Visibility */
.ad-desktop {
  display: none;
  margin: 15px auto;
  text-align: center;
}

.ad-mobile {
  display: none;
  margin: 15px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .ad-desktop {
    display: block;
  }
}

/* Mobile & Tablet Responsive Styles */
@media screen and (max-width: 768px) {
  .ad-mobile {
    display: block;
  }
  .ad-mobile iframe {
    max-width: 100% !important;
  }
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
  .btn:last-child {
    margin-bottom: 0;
  }
  footer {
    position: static !important;
  }
}

/* Ensure no horizontal overflow on mobile screens */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Floating ads (if used) */
.floating-left, .floating-right {
  position: fixed;
  top: 120px;
  z-index: 9999;
}
.floating-left {
  left: 10px;
}
.floating-right {
  right: 10px;
}
@media screen and (max-width: 991px) {
  .floating-left,
  .floating-right {
    display: none;
  }
}