html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Sidebar Ads Styling */
.sidebar-ads {
    position: sticky;
    top: 20px;
}

.sidebar-ads .ad-container {
    margin-bottom: 2rem;
}

/* Mobile optimization for sidebar */
@media (max-width: 991.98px) {
    .sidebar-ads {
        position: static;
        margin-top: 2rem;
    }
    
    .sidebar-ads .ad-container {
        margin-bottom: 1rem;
    }
}

/* AdSense loading optimization */
.ad-container {
    transition: opacity 0.3s ease;
}

.ad-container:empty {
    opacity: 0.6;
}

/* RTL support for ads */
[dir="rtl"] .ad-container {
    text-align: center;
}

/* Print styles - hide ads when printing */
@media print {
    .ad-container {
        display: none !important;
    }
}