/* =========================================================
   BLOG - LISTAGEM
========================================================= */

.blog-listing {
  padding: 70px 0 70px;
}

.blog-listing .container {
  max-width: 1180px;
}

.blog-listing .row {
  row-gap: 32px;
}

/* =========================================================
   CARD DO BLOG
========================================================= */

.post-card {
  height: 100%;
  background: #ffffff;

  border: 1px solid #ededed;
  border-radius: 18px;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}


/* IMAGEM */

.post-card-image {
  display: block;
  width: 100%;
  overflow: hidden;

  aspect-ratio: 4 / 3;
}

.post-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 0.35s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.03);
}


/* CORPO */

.post-card-body {
  padding: 24px 24px 26px;

  display: flex;
  flex-direction: column;

  flex: 1;
}


/* TÍTULO */

.post-card-title {
  margin: 0 0 14px;

  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 500;
}

.post-card-title a {
  color: #181818;
  text-decoration: none;
}

.post-card-title a:hover {
  color: #ed5b00;
}


/* RESUMO */

.post-card-body p {
  margin: 0 0 22px;

  font-size: 0.98rem;
  line-height: 1.65;

  color: #555;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;

  overflow: hidden;
}


/* LEIA MAIS */

.post-card-link {
  margin-top: auto;

  font-size: 0.98rem;
  font-weight: 500;

  color: #ed5b00;

  text-decoration: none;
}

.post-card-link:hover {
  text-decoration: underline;
}


/* =========================================================
   PAGINAÇÃO
========================================================= */

.blog-listing .navigation.pagination {
  margin-top: 20px;
}

.blog-listing .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.blog-listing .page-numbers {
  min-width: 42px;
  height: 42px;

  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  text-decoration: none;

  color: #222;
  background: #f3f3f3;
}

.blog-listing .page-numbers.current,
.blog-listing .page-numbers:hover {
  background: #ed5b00;
  color: #fff;
}


/* =========================================================
   POST INTERNO
========================================================= */

.single-post {
  padding: 72px 0 90px;
}

.single-post .container {
  max-width: 1040px;
  margin: 0 auto;
}


/* =========================================================
   ARTIGO
========================================================= */

.single-article {
  width: 100%;
}


/* =========================================================
   CABEÇALHO
========================================================= */

.single-header {
  max-width: 850px;
  margin: 0 auto 42px;
}

.single-header h1 {
  margin: 0 0 14px;

  font-size: clamp(2.5rem, 4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 500;

  letter-spacing: -0.03em;

  color: #1b1b1b;
}

.single-meta {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #777;
}


/* =========================================================
   CONTEÚDO
========================================================= */

.single-content {
  max-width: 850px;
  margin: 0 auto;

  font-size: 1.05rem;
  line-height: 1.8;

  color: #333;
}


/* =========================================================
   PARÁGRAFOS
========================================================= */

.single-content p {
  margin: 0 0 28px;
}


/* =========================================================
   IMAGENS INTERNAS
========================================================= */

.single-content figure {
  width: 100%;
  margin: 0 auto 42px;
}

.single-content img {
  display: block;

  width: 100%;
  max-width: 100%;
  height: auto;

  margin: 0 auto;

  border-radius: 16px;
}


/* =========================================================
   TÍTULOS INTERNOS
========================================================= */

.single-content h2 {
  margin: 48px 0 18px;

  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;

  color: #1f1f1f;
}

.single-content h3 {
  margin: 38px 0 16px;

  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 600;

  color: #1f1f1f;
}


/* =========================================================
   LINKS
========================================================= */

.single-content a {
  color: #ed5b00;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-content a:hover {
  opacity: 0.8;
}


/* =========================================================
   LISTAS
========================================================= */

.single-content ul,
.single-content ol {
  margin: 0 0 28px;
  padding-left: 24px;
}

.single-content li {
  margin-bottom: 10px;
}


/* =========================================================
   CITAÇÕES
========================================================= */

.single-content blockquote {
  margin: 36px 0;
  padding: 20px 26px;

  border-left: 4px solid #ed5b00;

  background: #fafafa;

  font-style: italic;
}

/* =========================================================
   VÍDEOS DENTRO DO CONTEÚDO DO POST
========================================================= */

/* Container geral */
.single-post .post-content video,
.single-post .entry-content video,
.single-post .single-content video,
.single-post article video {
    display: block;

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 760px !important;

    margin: 45px auto !important;

    object-fit: contain;

    border-radius: 18px;

    background: #000;
}


/* =========================================================
   VÍDEOS VERTICAIS
   O JS adicionará esta classe automaticamente
========================================================= */

.single-post video.ponce-video-vertical {
    width: auto !important;
    max-width: 520px !important;
    max-height: 760px !important;
}


/* =========================================================
   VÍDEOS HORIZONTAIS
========================================================= */

.single-post video.ponce-video-horizontal {
    width: 100% !important;
    max-width: 1000px !important;
    height: auto !important;
    max-height: none !important;
}


/* =========================================================
   YOUTUBE / VIMEO / IFRAMES DE VÍDEO
========================================================= */

.single-post .post-content iframe,
.single-post .entry-content iframe,
.single-post .single-content iframe,
.single-post article iframe {
    display: block;

    width: 100% !important;
    max-width: 1000px !important;

    aspect-ratio: 16 / 9;

    height: auto !important;

    margin: 45px auto !important;

    border: 0;
    border-radius: 18px;

    overflow: hidden;
}

/* =========================================================
   PLAY DOS CARDS COM VÍDEO
========================================================= */

.post-card-video {
  position: relative;
  overflow: hidden;
}

.post-card-video-element {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  background: #000;
}


/* BOTÃO PLAY */

.post-card-play {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 64px;
  height: 64px;

  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.94);

  color: #ed5b00;

  font-size: 2rem;

  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);

  pointer-events: none;

  opacity: 1;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}


/* PLAY SOME QUANDO O VÍDEO ESTÁ TOCANDO */

.post-card-play.is-hidden {
  opacity: 0;

  transform:
    translate(-50%, -50%)
    scale(0.9);
}


/* MOBILE */

@media (max-width: 768px) {

  .post-card-play {
    width: 54px;
    height: 54px;

    font-size: 1.7rem;
  }

}

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

@media (max-width: 768px) {

    .single-post video.ponce-video-vertical {
        width: auto !important;
        max-width: 90% !important;
        max-height: 75vh !important;

        margin: 28px auto !important;

        border-radius: 14px;
    }


    .single-post video.ponce-video-horizontal {
        width: 100% !important;
        max-width: 100% !important;

        margin: 28px auto !important;

        border-radius: 14px;
    }


    .single-post .post-content iframe,
    .single-post .entry-content iframe,
    .single-post .single-content iframe,
    .single-post article iframe {
        width: 100% !important;
        max-width: 100% !important;

        margin: 28px auto !important;

        border-radius: 14px;
    }

}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

  .blog-listing {
    padding: 80px 0 70px;
  }

  .single-post {
    padding: 60px 0 75px;
  }

  .single-post .container {
    max-width: 860px;
  }

  .single-header,
  .single-content {
    max-width: 760px;
  }

}

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

@media (max-width: 767px) {

  .blog-listing {
    padding: 55px 0 60px;
  }

  .blog-listing .container,
  .single-post .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .post-card {
    border-radius: 14px;
  }

  .post-card-body {
    padding: 20px;
  }

  .post-card-title {
    font-size: 1.2rem;
  }

  .single-post {
    padding: 42px 0 60px;
  }

  .single-post .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .single-header {
    margin-bottom: 30px;
  }

  .single-header h1 {
    font-size: 2rem;
    line-height: 1.12;

    letter-spacing: -0.02em;
  }

  .single-meta {
    font-size: 0.88rem;
  }

  .single-content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .single-content p {
    margin-bottom: 22px;
  }

  .single-content figure {
    margin-bottom: 28px;
  }

  .single-content img {
    border-radius: 12px;
  }

  .single-content h2 {
    margin-top: 36px;
    font-size: 1.6rem;
  }

  .single-content h3 {
    margin-top: 30px;
    font-size: 1.3rem;
  }
}