.oteacher-masonry-grid {
  display: flex;
  gap: var(--grid-gap);
  align-items: flex-start;
  margin: 0 auto;
}

.oteacher-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oteacher-card img {
  width: 100%;
  height: auto;
  display: block;
}

.oteacher-card.skeleton {
  background: linear-gradient(90deg, #dfdbd5 25%, #c8c3bc 50%, #dfdbd5 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.4s ease-in-out infinite;
  border-radius: 16px;
  height: 320px;
}

@keyframes skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ot-blog-layout-container {
  display: grid;
  /* 1fr para a esquerda (ocupa o resto do espaço) e 350px fixos para a sidebar */
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 60px; /* Espaço generoso entre os cards e a sidebar */
  max-width: 95vw;
  margin: 0 auto;
  align-items: start; /* Impede que a sidebar estique até o final da página */
}
.ot-blog-main-content {
  min-width: 0; /* Força os cards a respeitarem o limite da tela sem vazar */
}
.ot-blog-main-content .ot-blog-grid,
.ot-blog-main-content .ot-home-episodes,
.ot-blog-main-content .oteacher-masonry-grid {
  max-width: 100% !important; /* Sobrescreve o 95vw apenas dentro desse layout */
  width: 100% !important;
  margin: 0 !important;
}

.ot-blog-sidebar {
  position: sticky;
  top: 120px; /* Respiro da sua navbar fixa */
  display: flex;
  flex-direction: column;
  gap: 40px; /* Espaço entre a newsletter e os posts da sidebar */
}


.ot-sidebar-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ot-text-strong);
  margin-bottom: 20px;
}

/* ============================================================
   SIDEBAR — MINI BLOG CARDS (oteacher_sidebar_recent)
   ============================================================ */

.ot-sidebar-posts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;

  scrollbar-width: thin;
  scrollbar-color: rgb(var(--ot-ink-rgb) / 0.12) transparent;
}

.ot-sidebar-posts-list::-webkit-scrollbar {
  width: 4px;
}
.ot-sidebar-posts-list::-webkit-scrollbar-track {
  background: transparent;
}
.ot-sidebar-posts-list::-webkit-scrollbar-thumb {
  background: rgb(var(--ot-ink-rgb) / 0.12);
  border-radius: 4px;
}

/* Card horizontal — ~100px de altura igual ao mock */
.ot-sidebar-post-item {
  display: flex;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  background: var(--ot-card);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ot-sidebar-post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Thumbnail — retangular retrato 3:4, encaixa melhor capas de PDF e fotos */
.ot-sidebar-post-thumb {
  flex-shrink: 0;
  width: 75px;
  height: 100%;
  background: #e8e3dc;
}

.ot-sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ot-sidebar-post-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #e8e3dc;
}

/* Info — lado direito */
.ot-sidebar-post-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 14px;
}

.ot-sidebar-post-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ot-text-strong);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ot-sidebar-post-date {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: #999;
  white-space: nowrap;
}

/* --- RESPONSIVO --- */
/* No tablet e celular, derrubamos a sidebar para baixo do grid */
/* --- RESPONSIVO --- */
@media (max-width: 1024px) {
  .ot-blog-layout-container {
    display: flex; /* Mudamos para flex no mobile para facilitar a inversão */
    flex-direction: column; 
    gap: 50px;
  }
  
  /* Joga o grid principal de posts lá para baixo */
  .ot-blog-main-content {
    order: 2; 
  }

  /* Puxa a sidebar (Posts Recentes e Newsletter) para o topo */
  .ot-blog-sidebar {
    order: 1; 
    position: static; /* Tira o efeito "sticky" no mobile */
    width: 100%; /* Garante que ocupe a tela toda */
  }
}

/* --- AJUSTE DOS CARDS PARA 2 COLUNAS NO MOBILE --- */
@media (max-width: 768px) {
  /* 1. Transforma o container num Flexbox que permite quebra de linha (wrap) */
  .ot-blog-main-content .oteacher-masonry-grid {
    display: flex !important;
    flex-wrap: wrap !important; 
    gap: 15px !important; /* Espaçamento entre os cards */
  }

  /* 2. Força cada coluna a ocupar exatamente metade da tela (menos o gap) */
  .ot-blog-main-content .oteacher-col {
    flex: 0 0 calc(50% - 7.5px) !important;
    width: calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* 3. VITAL: Anula a regra do seu card-post.css que escondia as colunas! */
  .ot-blog-grid .oteacher-col:nth-child(n+3) {
    display: flex !important; 
  }
}