/* =========================
   SAFE AWAY BLOG
   Archive + Single
========================= */


/* =========================
   ARCHIVE
========================= */

body.page-template-page-blog-php .archive-blog {
  padding: 120px 0 80px;
}

body.page-template-page-blog-php .archive-blog .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

body.page-template-page-blog-php .archive-header {
  margin-bottom: 36px;
  text-align: center;
}

body.page-template-page-blog-php .archive-header .page-title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  margin: 0 0 12px;
}

body.page-template-page-blog-php .archive-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(0,0,0,0.65);
  margin: 0 auto;
  max-width: 680px;
}


/* GRID */

body.page-template-page-blog-php .posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  body.page-template-page-blog-php .posts-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  body.page-template-page-blog-php .posts-grid {
    grid-template-columns: 1fr;
  }
}


/* CARD */

body.page-template-page-blog-php .post-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

body.page-template-page-blog-php .post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

body.page-template-page-blog-php .post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

body.page-template-page-blog-php .post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

body.page-template-page-blog-php .post-card:hover .post-card__media img {
  transform: scale(1.04);
}

body.page-template-page-blog-php .post-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.page-template-page-blog-php .post-card__meta {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(0,0,0,0.55);
}

body.page-template-page-blog-php .post-card__title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

body.page-template-page-blog-php .post-card__title a {
  text-decoration: none;
  color: inherit;
}

body.page-template-page-blog-php .post-card__title a:hover {
  opacity: .8;
}

body.page-template-page-blog-php .post-card__excerpt {
  margin: 0 0 18px;
  line-height: 1.65;
  color: rgba(0,0,0,0.72);
  flex: 1;
}

body.page-template-page-blog-php .post-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #0e6b67;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background .25s ease;
}

body.page-template-page-blog-php .post-card__cta:hover {
  background: #0b5754;
}


/* =========================
   SINGLE POST
========================= */

body.single-post .sa-post {
  padding-top: 150px;
  padding-bottom: 90px;
}

body.single-post .sa-post .sa-container,
body.single-post .sa-post .sa-container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}


/* HEADER */

body.single-post .sa-post__header {
  margin-bottom: 30px;
}

body.single-post .sa-post__meta {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #66c6c2;
  font-weight: 700;
  margin-bottom: 14px;
}

body.single-post .sa-post__title {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #171717;
  margin: 0;
}


/* FEATURED IMAGE */

body.single-post .sa-post__featured {
  margin: 40px 0;
}

body.single-post .sa-post__featured img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}


/* CONTENT */

body.single-post .sa-post__content {
  font-size: 19px;
  line-height: 1.9;
  color: rgba(0,0,0,0.86);
}

body.single-post .sa-post__content p {
  margin-bottom: 24px;
}

body.single-post .sa-post__content h2 {
  font-size: clamp(30px, 3vw, 42px);
  margin: 52px 0 18px;
  line-height: 1.2;
  color: #171717;
}

body.single-post .sa-post__content h3 {
  font-size: 26px;
  margin: 40px 0 14px;
  color: #171717;
}

body.single-post .sa-post__content h4 {
  font-size: 22px;
  margin: 32px 0 12px;
  color: #171717;
}

body.single-post .sa-post__content ul,
body.single-post .sa-post__content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

body.single-post .sa-post__content li {
  margin-bottom: 10px;
}

body.single-post .sa-post__content a {
  color: #0e6b67;
  text-decoration: underline;
}

body.single-post .sa-post__content img {
  max-width: 100%;
  border-radius: 18px;
}

body.single-post .sa-post__content figure {
  margin: 34px 0;
}

body.single-post .sa-post__content blockquote {
  margin: 36px 0;
  padding: 24px 26px;
  border-left: 4px solid #66c6c2;
  background: rgba(102,198,194,0.08);
  border-radius: 16px;
  font-size: 19px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  body.single-post .sa-post {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  body.single-post .sa-post__title {
    font-size: clamp(30px, 9vw, 44px);
  }

  body.single-post .sa-post__content {
    font-size: 17px;
  }
}


/* =========================
   FIX: RESET SINGLE TITLE / HEADER
========================= */

body.single-post .sa-post,
body.single-post .sa-post__header,
body.single-post .sa-post__title,
body.single-post .sa-post__content,
body.single-post .sa-post__featured {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: auto !important;
}

body.single-post .sa-post__header {
  display: block !important;
  width: 100% !important;
  margin: 0 0 30px !important;
}

body.single-post .sa-post__title {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  clear: both !important;
  float: none !important;
  text-align: left !important;
  white-space: normal !important;
}

body.single-post .sa-post__content {
  clear: both !important;
}

body.single-post .sa-post__content h1,
body.single-post .sa-post__content h2,
body.single-post .sa-post__content h3,
body.single-post .sa-post__content h4 {
  position: static !important;
  top: auto !important;
  transform: none !important;
}


/* =========================
   NÃO INTERFERIR NO HEADER/FOOTER
   DO TEMA NAS PÁGINAS DE BLOG
========================= */

body.page-template-page-blog-php header,
body.single-post header,
body.page-template-page-blog-php footer,
body.single-post footer {
  visibility: visible;
  opacity: 1;
}

body.page-template-page-blog-php footer a,
body.single-post footer a {
  color: inherit;
  text-decoration: none;
}