/* Blog — aligned with main site sections (services, tariffs, FAQ) */

.blog-preview,
.blog-hero,
.blog-index,
.blog-post-hero,
.blog-post-section,
.blog-cta {
  margin: 60px 0;
}

.blog-preview {
  margin: 40px 0 60px;
}

.blog-preview__wrp,
.blog-hero__head,
.blog-cta__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.blog-preview__wrp .heading-title,
.blog-hero__head .heading-title,
.blog-cta__head .heading-title {
  margin-bottom: 0;
}

.blog-preview__text,
.blog-hero__text,
.blog-card__excerpt,
.blog-empty p,
.blog-sidebar__box p,
.blog-article,
.blog-post__lead,
.blog-hero__aside p {
  color: #66727F;
  line-height: 1.5;
}

.blog-preview__text,
.blog-hero__text {
  max-width: 70ch;
  margin: 0 0 30px;
}

.blog-preview__grid,
.blog-index__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  padding: 0;
}

.blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #F97C26 0%, #F99A43 100%);
}

.blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.03);
}

.blog-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 500;
  color: #fff;
  text-align: center;
}

.blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 15px;
  padding: 24px 30px 30px;
}

.blog-card__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #66727F;
  font-size: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
}

.blog-card__title {
  margin: 0;
  font-size: clamp(1rem, 0.975rem + 0.125vw, 1.125rem);
  font-weight: 700;
  line-height: 1.3;
}

.blog-card__title a {
  color: #0B1F33;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-card__title a:hover {
  color: #F97B21;
}

.blog-card__excerpt {
  margin: 0;
  flex-grow: 1;
}

.blog-card__link {
  align-self: flex-start;
}

.blog-hero {
  margin-top: 90px;
  margin-bottom: 30px;
}

.blog-hero__wrap {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  align-items: start;
}

.blog-hero__title {
  margin-bottom: 20px;
}

.blog-hero__text {
  margin: 0;
}

.blog-hero__actions,
.blog-cta__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.blog-hero__aside,
.blog-sidebar__box,
.blog-empty,
.blog-cta__box {
  border-radius: 24px;
  background: #fff;
  border: 1px solid #ececec;
}

.blog-hero__aside {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.blog-hero__metric {
  display: grid;
  gap: 8px;
}

.blog-hero__metric span,
.blog-sidebar__eyebrow {
  color: #66727F;
  font-size: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
  line-height: 1.3;
}

.blog-hero__metric strong {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.5625rem, 1.375rem + 0.9375vw, 2.5rem);
  font-weight: 500;
  line-height: 1.3;
  color: #0B1F33;
}

.blog-hero__aside p {
  margin: 0;
}

.blog-index {
  margin-top: 0;
  margin-bottom: 40px;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.blog-pagination__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 80px;
  border: 1px solid #F97B21;
  background: transparent;
  color: #0B1F33;
  font-size: clamp(0.875rem, 0.825rem + 0.25vw, 1.125rem);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}

.blog-pagination__link:hover,
.blog-pagination__link.is-active {
  background: #F97B21;
  border-color: #F97B21;
  color: #fff;
}

.blog-empty {
  padding: 30px;
}

.blog-empty h2,
.blog-sidebar__box h2 {
  margin: 0 0 12px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1rem, 0.975rem + 0.125vw, 1.25rem);
  font-weight: 700;
  color: #0B1F33;
  line-height: 1.3;
}

.blog-breadcrumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  color: #66727F;
  font-size: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
}

.blog-breadcrumbs a {
  color: #0B1F33;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-breadcrumbs a:hover {
  color: #F97B21;
}

.blog-post-hero {
  margin-top: 90px;
  margin-bottom: 30px;
}

.blog-post__head .section-heading {
  margin-bottom: 20px;
}

.blog-post__title {
  margin-bottom: 20px;
}

.blog-post__lead {
  margin: 0;
  max-width: 70ch;
  font-size: clamp(1rem, 0.975rem + 0.125vw, 1.25rem);
  line-height: 1.5;
}

.blog-post__cover {
  overflow: hidden;
  border-radius: 24px;
  margin-top: 30px;
}

.blog-post__cover img {
  display: block;
  width: 100%;
  max-height: 580px;
  object-fit: cover;
}

.blog-post-section {
  margin-top: 0;
  margin-bottom: 40px;
}

.blog-post-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
}

.blog-article {
  font-size: clamp(0.875rem, 0.825rem + 0.25vw, 1.125rem);
  line-height: 1.5;
  color: #66727F;
}

.blog-article h1,
.blog-article h2,
.blog-article h3,
.blog-article h4 {
  margin: 30px 0 15px;
  font-family: "Unbounded", sans-serif;
  color: #0B1F33;
  line-height: 1.3;
}

.blog-article h1 {
  font-size: clamp(1.5625rem, 1.375rem + 0.9375vw, 2.5rem);
  font-weight: 500;
}

.blog-article h2 {
  font-size: clamp(1.25rem, 1.1625rem + 0.4375vw, 1.6875rem);
  font-weight: 700;
}

.blog-article h3 {
  font-size: clamp(1rem, 0.975rem + 0.125vw, 1.25rem);
  font-weight: 700;
}

.blog-article p,
.blog-article ul,
.blog-article ol,
.blog-article blockquote,
.blog-article table,
.blog-article hr {
  margin: 0 0 15px;
}

.blog-article ul,
.blog-article ol {
  padding-left: 22px;
}

.blog-article ul {
  list-style: disc;
}

.blog-article ol {
  list-style: decimal;
}

.blog-article ul ul {
  list-style: circle;
  margin-top: 10px;
}

.blog-article ol ol {
  list-style: lower-alpha;
  margin-top: 10px;
}

.blog-article li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.blog-article li:last-child {
  margin-bottom: 0;
}

.blog-article a {
  color: #F97B21;
}

.blog-article strong,
.blog-article b {
  color: #0B1F33;
  font-weight: 700;
}

.blog-article em,
.blog-article i {
  font-style: italic;
}

.blog-article blockquote {
  padding: 20px 24px;
  border-left: 4px solid #F97B21;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #ececec;
  border-left: 4px solid #F97B21;
  color: #0B1F33;
}

.blog-article img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  margin: 20px 0;
}

.blog-article table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #ececec;
}

.blog-article th,
.blog-article td {
  padding: 14px 16px;
  border: 1px solid #ececec;
  text-align: left;
  vertical-align: top;
}

.blog-article th {
  color: #0B1F33;
  background: #fff;
  font-weight: 700;
}

.blog-article hr {
  border: 0;
  border-top: 1px solid #ececec;
}

.blog-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.blog-sidebar__box {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.blog-sidebar__box p {
  margin: 0;
}

.blog-sidebar__list {
  display: grid;
  gap: 10px;
}

.blog-sidebar__item {
  display: grid;
  gap: 6px;
  padding: 15px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #ececec;
  text-decoration: none;
  transition: border-color 0.3s;
}

.blog-sidebar__item:hover {
  border-color: #F97B21;
}

.blog-sidebar__item strong {
  color: #0B1F33;
  font-size: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
  font-weight: 700;
  line-height: 1.3;
}

.blog-sidebar__item span {
  color: #66727F;
  font-size: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
}

.blog-cta {
  margin-top: 0;
  margin-bottom: 60px;
}

.blog-cta__box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 30px;
}

.blog-cta__box .section-heading {
  margin-bottom: 15px;
}

.blog-cta__title {
  margin-bottom: 0;
}

@media only screen and (max-width: 1200px) {
  .blog-preview__grid,
  .blog-index__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-post-layout,
  .blog-hero__wrap {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

@media only screen and (max-width: 768px) {
  .blog-preview,
  .blog-hero,
  .blog-index,
  .blog-post-hero,
  .blog-post-section,
  .blog-cta {
    margin: 40px 0;
  }

  .blog-preview__wrp,
  .blog-hero__head,
  .blog-cta__box,
  .blog-cta__head {
    display: grid;
  }

  .blog-preview__grid,
  .blog-index__grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 578px) {
  .blog-hero {
    margin-top: 72px;
  }

  .blog-post-hero {
    margin-top: 72px;
  }

  .blog-card__body,
  .blog-sidebar__box,
  .blog-empty,
  .blog-cta__box,
  .blog-hero__aside {
    padding: 20px;
  }
}
