/* ===== Sähköurakointi.info – tyylitiedosto ===== */

/* Hero */
.hero-section {
  background: linear-gradient(135deg, #0d6efd 0%, #0a3d8f 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
}

/* Vaihenumerot kilpailutusoppaassa */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: #0d6efd;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
}

/* Sivupalkki pysyy näkyvissä scrollatessa (desktop) */
@media (min-width: 992px) {
  .sticky-sidebar {
    position: sticky;
    top: 80px;
  }
}

/* AdSense-paikat */
.ad-slot {
  width: 100%;
  overflow: hidden;
}

.ad-slot ins {
  width: 100%;
}

/* Placeholder-banneri kehitysvaiheessa */
.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
  border: 2px dashed #adb5bd;
  border-radius: 4px;
  color: #6c757d;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 600;
}

.ad-slot-vertical .ad-placeholder {
  margin: 0 auto;
}

/* Artikkelien ankkurilinkit – huomioi sticky nav */
article[id] {
  scroll-margin-top: 80px;
}

/* Kortit hover-efekti */
.card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important;
}

/* Navbar brand */
.navbar-brand {
  font-size: 1.1rem;
}

/* Footer */
footer {
  border-top: 3px solid #ffc107;
}
