/* Page: The Ultimate Guide to Data Scraping with Python */

.om-post-hero-slide-1 { background-image: url('../../../images/hero-agency-bg.png'); }
.om-post-hero-slide-2 { background-image: url('../../../images/agency-workspace.png'); }
.om-post-hero-slide-3 { background-image: url('../../../images/office-2360063_1920.jpg'); }

.om-post-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 140% at 75% 0%, #003B5C 0%, #00203D 52%, #001628 100%);
  color: #fff;
}
.om-post-hero-inner {
  position: relative;
  z-index: 2;
  padding: 3.5rem 1rem 3rem;
}
.om-post-hero-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.1rem;
}
.om-post-hero-crumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.om-post-hero-crumb a:hover { color: #A8D0EA; }
.om-post-hero-crumb-sep { color: rgba(255, 255, 255, 0.35); }
.om-post-hero-title {
  display: block;
  background: none;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.9rem;
}
.om-post-hero-lead {
  display: block;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 56ch;
  margin: 0 0 1.6rem;
}
.om-post-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.st-btn--lg {
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  border-radius: 10px;
  min-width: 0;
}
@media (min-width: 576px) {
  .st-btn--lg { min-width: 200px; }
}
.om-post-hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 1.6rem 1.45rem 1.35rem;
  color: #fff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.4);
  max-width: 360px;
  margin-left: auto;
}
.om-post-hero-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #A8D0EA;
  margin-bottom: 0.85rem;
}
.om-post-hero-card-body {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}
.om-post-hero-card-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, #0072B9, #00203D);
}
.om-post-hero-card-body p {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin: 0;
}
.om-post-hero-card-foot {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.om-post-hero-card-stat strong {
  display: block;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.om-post-hero-card-stat strong i {
  font-size: 0.72em;
  color: #A8D0EA;
  margin-left: 0.12rem;
}
.om-post-hero-card-stat span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.om-post-hero-card-link {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0072B9;
  text-decoration: none;
  white-space: nowrap;
}
.om-post-hero-card-link:hover { color: #E8F1F7; }
.om-post-hero-card-badge {
  position: absolute;
  top: -14px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0072B9, #003B5C);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0, 114, 185, 0.45);
}
.om-post-hero-badges {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}
.om-post-hero-badges-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.25rem;
  padding: 0.85rem 1rem;
}
.om-post-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.om-post-hero-badges i { color: #A8D0EA; }

.om-post-body { background: #fff; }
.om-post-article {
  color: #3a4a63;
  font-size: 1.02rem;
  line-height: 1.85;
}
.om-post-cover {
  margin: 0 0 1.75rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 32, 61, 0.1);
}
.om-post-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.om-post-article h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  color: #00203D;
  letter-spacing: -0.02em;
  margin: 2.2rem 0 0.85rem;
  scroll-margin-top: 6.5rem;
}
.om-post-article p { margin: 0 0 1.05rem; }
.om-post-article p:last-child { margin-bottom: 0; }

.om-post-tools {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  border: 1px solid #E8F1F7;
  border-radius: 14px;
  overflow: hidden;
  background: #F5F9FC;
}
.om-post-tools li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  border-top: 1px solid #E8F1F7;
  margin: 0;
}
.om-post-tools li:first-child { border-top: 0; }
.om-post-tools strong {
  color: #00203D;
  font-size: 0.95rem;
}
.om-post-tools span {
  color: #4a5a75;
  font-size: 0.92rem;
  line-height: 1.6;
}

.om-post-steps {
  list-style: none;
  margin: 1.15rem 0 1.5rem;
  padding: 0;
  counter-reset: om-step;
  display: grid;
  gap: 0.9rem;
}
.om-post-steps li {
  position: relative;
  padding: 1.1rem 1.15rem 1.1rem 4.1rem;
  background: #F5F9FC;
  border: 1px solid #E8F1F7;
  border-radius: 14px;
  color: #4a5a75;
  font-size: 0.95rem;
  line-height: 1.7;
}
.om-post-steps li::before {
  counter-increment: om-step;
  content: counter(om-step);
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: #0072B9;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.om-post-steps strong {
  display: block;
  color: #00203D;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.om-post-checks {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.om-post-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #F5F9FC;
  border: 1px solid #E8F1F7;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e58;
  line-height: 1.55;
}
.om-post-checks i { color: #0072B9; flex-shrink: 0; margin-top: 0.12rem; }
.om-post-article code {
  font-size: 0.9em;
  background: #E8F1F7;
  color: #00203D;
  padding: 0.08em 0.4em;
  border-radius: 4px;
}

.om-post-cta {
  background: #00203D;
  color: #fff;
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  margin: 2rem 0 0.5rem;
}
.om-post-cta h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.45rem;
}
.om-post-cta p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.1rem;
}
.om-post-back { margin-top: 2rem; }

.om-post-side {
  display: grid;
  gap: 1.35rem;
}
.om-post-toc {
  background: #F5F9FC;
  border: 1px solid #E8F1F7;
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.05rem;
}
.om-post-side .om-inquiry-sidebar { position: sticky; top: 6.4rem; }
.om-post-toc h2 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0072B9;
  margin: 0 0 0.75rem;
}
.om-post-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.om-post-toc a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  color: #2c3e58;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}
.om-post-toc a:hover {
  background: #fff;
  color: #0072B9;
}

.st-connect {
  background: #00203D;
  color: #fff;
}
.st-connect__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.st-connect__lead {
  color: rgba(255, 255, 255, 0.75);
  max-width: 54ch;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.st-connect__lead a {
  color: #A8D0EA;
  font-weight: 700;
  text-decoration: none;
}
.st-connect .st-btn--cta { min-width: 220px; }

@media (max-width: 991.98px) {
  .om-post-toc { position: static; }
  .om-post-side .om-inquiry-sidebar { position: static; }
  .om-post-tools li { grid-template-columns: 1fr; gap: 0.2rem; }
  .om-post-hero-inner { padding: 2.75rem 1rem 2.5rem; }
  .om-post-hero-badges-inner { gap: 0.5rem 1.25rem; }
}
@media (max-width: 767.98px) {
  .om-post-hero-badges-inner { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}
@media (max-width: 575.98px) {
  .om-post-hero-actions .st-btn,
  .om-post-hero-actions .st-hero__cta { width: 100%; justify-content: center; }
}
