/* =====================================================================
   BLOG — blog posts (layouts/post.njk), blog listings, tag and author pages
   ===================================================================== */

/* ---------- Page: article on the left, sidebar on the right ---------- */
.blog-page {
  display: grid;
  grid-template-columns: 920fr 394fr;
  gap: 30px;
  max-width: 1344px;
  margin: 50px auto 40px;
}

/* ---------- Blog post ---------- */
.post { min-width: 0; padding-left: 15px; }
.post__title {
  margin: 0 15px 20px;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
}
.post__image { padding: 20px; }
.post__image img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* Author box under the photo */
.author-box {
  display: flex;
  align-items: flex-start;
  padding: 7px 15px 0 20px;
  border-radius: 12px;
  background: var(--light-blue);
}
.author-box__avatar { flex: none; width: 60px; height: 60px; margin-right: 25px; border-radius: 50%; object-fit: cover; }
.author-box__name { margin: 0 0 5px; font-size: 20px; font-weight: 400; line-height: 1.333; color: #868686; }
.author-box__bio { margin-bottom: 14.4px; font-size: 18px; line-height: 1.2; color: var(--heading); }

/* Article text */
.post__content { margin-top: 20px; padding: 0 12px; font-size: 20px; line-height: 1.2; }
.post__content p { margin: 0 0 18px; line-height: 1.4; }
.post__content h2 {
  margin: 15px 0;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--teal-dark);
}
.post__content h3 {
  margin: 0 0 15px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.278;
  color: var(--teal-dark);
}
.post__content ul, .post__content ol { margin: 0 0 16px; padding-left: 24px; }
.post__content li { color: var(--heading); }
.post__content ul.toc { line-height: 1.3; }
.post__content a { color: var(--teal); }
.post__content figure { display: flow-root; margin: 0 0 20px; }
.post__content figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.post__content figcaption { margin: .5em 0 1em; font-size: 13px; line-height: 24px; text-align: center; }

/* ---------- Sidebar: Recent Posts ---------- */
.widget {
  margin-bottom: 40px;
  padding: 30px;
  border: 1px solid #e1e4e5;
  border-radius: 8px;
  background: #fff;
}
.widget__title {
  position: relative;
  margin: -3.12px 0 30px;
  padding-bottom: 17px;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--teal-dark);
}
.widget__title::before,
.widget__title::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; }
.widget__title::before { width: 100%; background: #e9edf5; }
.widget__title::after { width: 30px; background: var(--teal); }
.recent-post { display: flex; gap: 15px; margin-bottom: 20px; }
.recent-post:last-child { margin-bottom: 0; }
.recent-post__img { flex: none; }
.recent-post__img img { display: block; width: 80px; height: 80px; border-radius: 4px; object-fit: cover; }
.recent-post__title {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.333;
  text-transform: capitalize;
  color: var(--teal-dark);
}
.recent-post__title a:hover { color: var(--teal); }

/* =====================================================================
   BLOG LISTS: /blog/, tag, author and category pages (layouts/archive.njk)
   ===================================================================== */
.archive {
  display: grid;
  grid-template-columns: 896fr 448fr;
  max-width: 1344px;
  margin: 0 auto;
  padding: 120px 0 90px;
}
.archive__posts { display: grid; grid-template-columns: 1fr 1fr; align-content: start; column-gap: 24px; padding: 0 12px; }
.archive__sidebar { padding: 0 12px 0 22px; }
.archive .widget__title { margin-top: -2.88px; font-family: var(--font-body); font-size: 24px; }

.post-card { margin-bottom: 40px; }
.post-card__img { display: block; margin-bottom: 40px; border-radius: 10px; background: var(--light-blue); overflow: hidden; }
.post-card__img img { display: block; width: 100%; height: auto; }
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-bottom: 10px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: #1c2d37;
}
.post-card__meta a { position: relative; display: block; line-height: 1.3; text-transform: capitalize; }
.post-card__meta a:first-child { margin-right: 12px; padding-right: 16px; }
.post-card__meta a:first-child::after {           /* small grey line between author and category */
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 10px;
  margin-top: -4px;
  background: #999;
}
.post-card__meta .icon, .post-card__meta img { display: inline-block; margin-right: 11px; }
.post-card__meta .icon { width: 12.25px; height: 14px; vertical-align: -2px; }
.post-card__meta img { vertical-align: -3px; }
.post-card__title {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.327;
  color: var(--teal-dark);
}
.post-card__title a:hover { color: var(--teal); }
.post-card__text { margin: 0 0 30px; font-size: 18px; line-height: 1.4; }
.post-card__btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 48px;
  background: var(--teal);
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #fff;
  transition: background .3s;
}
.post-card__btn:hover { background: var(--teal-dark); }

/* =====================================================================
   SATORICAMP BLOG page (/satoricamp-blog/): post tiles + featured journeys
   ===================================================================== */
body:has(.blog-trips) { --cta-wave-color: var(--light-blue); }
.blog-list {
  display: grid;
  grid-template-columns: 924fr 395fr;
  gap: 25px;
  max-width: 1344px;
  margin: 50px auto 70px;
}
.blog-list__main { padding: 20px; }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 35px; }
.blog-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2px 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .15);
  overflow: hidden;
}
.blog-tile__img { position: relative; display: block; margin-bottom: 20px; padding-bottom: 60%; overflow: hidden; }
.blog-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-tile__badge {
  position: absolute;
  top: 0;
  right: 0;
  margin: 20px;
  padding: 9.6px 19.2px;
  border-radius: 999px;
  background: #f6b31c;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}
.blog-tile__text { display: flex; flex-direction: column; flex-grow: 1; padding: 0 7px; }
.blog-tile__title { margin: 0 0 10px; font-size: 24px; font-weight: 700; line-height: 1.278; color: var(--heading); }
.blog-tile__title a:hover { color: var(--teal); }
.blog-tile__excerpt { margin: 0 0 25px; font-size: 20px; line-height: 26px; color: #777; }
.blog-tile__more { margin: auto 0 20px; font-size: 22px; font-weight: 500; line-height: 26px; text-transform: uppercase; color: var(--teal); }
.blog-pages { margin-top: 30px; font-size: 22px; line-height: 26px; text-align: center; }
.blog-pages > * { margin: 0 5px; }
.blog-pages > span { color: var(--text); }
.blog-pages a { color: var(--teal); }

.blog-trips { position: relative; padding: 120px 12px 90px; background: var(--light-blue); text-align: center; }
.blog-trips::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/images/shared/bg-right-only.png") 100% 50% no-repeat;
  opacity: .29;
}
.wave--blog-trips { height: 49px; }
.wave--blog-trips svg { width: calc(123% + 1.3px); fill: #fff; }
.blog-trips__label { position: relative; margin: 0 0 -4px; font-size: 28px; line-height: 40px; text-transform: uppercase; color: var(--teal-dark); }
.blog-trips__title {
  position: relative;
  margin: 0 0 49px;
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.327;
  color: var(--teal-dark);
}
.blog-trips__carousel { max-width: 1133px; margin: 0 auto; padding: 0 20px; text-align: left; }
.blog-trips__carousel .carousel__track { justify-content: center; gap: 20px; }
.blog-trips__carousel .trip-card { flex: 0 0 331px; min-height: 620px; }
.blog-trips__carousel .trip-card__img { height: 220px; }
.blog-trips__carousel .trip-card__price { width: 153px; }
.blog-trips__carousel .trip-card__facts li { margin-bottom: 6px; }
.blog-trips__carousel .carousel__prev,
.blog-trips__carousel .carousel__next { font-size: 25px; color: rgba(237, 237, 237, .9); }

/* =====================================================================
   MOBILE
   ===================================================================== */
@media (max-width: 1024px) {
  .blog-page { grid-template-columns: 1fr; gap: 0; margin-top: 20px; }
  .post { padding: 0 12px; }
  .post__title { font-size: 40px; }
}
@media (max-width: 767px) {
  .post__title { font-size: 32px; }
  .post__image { margin-bottom: 22px; padding: 0; }
  .author-box { padding: 10px 0 0 10px; }
  .author-box__avatar { width: 50px; height: 50px; margin-right: 12px; }
  .author-box__name { font-size: 18px; line-height: 1; }
  .author-box__bio { margin-bottom: 12.8px; font-size: 16px; }
  .widget__title { margin-bottom: 28px; }
  .archive { grid-template-columns: 1fr; padding: 80px 0 50px; }
  .archive__posts { grid-template-columns: 1fr; padding: 0 12px; }
  .archive__sidebar { padding: 30px 12px 0; }
  .archive .widget__title { margin: -2.64px 0 28px; font-size: 22px; }
  .post-card__meta a:first-child { margin-right: 20px; padding-right: 0; }
  .post-card__meta a:first-child::after { display: none; }
  .post-card__title { font-size: 24px; line-height: 1.3; }
  .post-card__text { margin-bottom: 22px; }
  .blog-list { grid-template-columns: 1fr; gap: 0; margin: 30px 0 30px; padding: 0 12px; }
  .blog-list__main { padding: 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-tile__img { padding-bottom: 50%; }
  .blog-tile__title { font-size: 25px; }
  .blog-trips { padding: 40px 15px 20px; }
  .wave--blog-trips { height: 33px; }
  .wave--blog-trips svg { width: calc(267% + 1.3px); }
  .blog-trips__label { margin-bottom: 10px; font-size: 22px; line-height: 30px; }
  .blog-trips__title { margin-bottom: 22px; font-size: 33px; line-height: 1.1; }
  .blog-trips__carousel { padding: 0 20px 40px; }
  .blog-trips__carousel .carousel__track { justify-content: flex-start; }
  .blog-trips__carousel .carousel__viewport { max-width: 260px; margin: 0 auto; }
  .blog-trips__carousel .trip-card { flex-basis: 260px; }
  .blog-trips__carousel .trip-card__img { height: 173px; }
  .blog-trips__carousel .trip-card__price { width: 117px; }
  .blog-trips__carousel .trip-card__title { font-size: 25px; line-height: 1.1; }
  .blog-trips__carousel .carousel__prev { left: 0; }
  .blog-trips__carousel .carousel__next { right: 0; }
}
