/* =========================================================
   Página Blog — complementa aulas.css
   ========================================================= */

.page-blog #wrapper {
  background: #f5f5f5;
}

.blog-catalog {
  padding: 36px 0 72px;
  background: #f5f5f5;
}

.blog-card-link {
  display: block;
  margin-bottom: 16px;
  text-decoration: none !important;
  color: inherit;
}

.blog-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(34, 35, 34, 0.06);
  box-shadow: 0 4px 16px rgba(34, 35, 34, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card-link:hover .blog-card {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(34, 35, 34, 0.1);
  border-color: rgba(248, 174, 46, 0.35);
}

.blog-card__media {
  flex: 0 0 240px;
  max-width: 240px;
  min-height: 170px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

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

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

.blog-card__media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 80% at 70% 20%, rgba(248, 174, 46, 0.22), transparent 55%),
    linear-gradient(135deg, #222322 0%, #2f302f 100%);
}

.blog-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(248, 174, 46, 0.18);
  color: #f8ae2e;
  font-size: 22px;
}

.blog-card__body {
  flex: 1;
  min-width: 0;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card__category {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f8ae2e;
}

.blog-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #222322;
  font-family: var(--font_family_heading);
}

.blog-card__excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #6b6b6b;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.blog-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #6b6b6b;
}

.blog-card__meta i {
  color: #f8ae2e;
  font-size: 12px;
}

.blog-card .aulas-card__cta {
  margin-top: 0;
}

.blog-card-link:hover .aulas-card__cta {
  opacity: 1;
  gap: 10px;
  color: #f8ae2e;
}

/* --- Sidebar --- */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 24px;
}

.blog-sidebar__card {
  background: #fff;
  border: 1px solid rgba(34, 35, 34, 0.06);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(34, 35, 34, 0.05);
}

.blog-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(34, 35, 34, 0.08);
}

.blog-sidebar__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #222322;
  font-family: var(--font_family_heading);
}

.blog-sidebar__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6b6b6b !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.2s ease, gap 0.2s ease;
}

.blog-sidebar__all:hover {
  color: #f8ae2e !important;
  gap: 9px;
}

.blog-sidebar__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-sidebar__list > li + li {
  margin-top: 10px;
}

.blog-sidebar__empty {
  font-size: 13px;
  color: #6b6b6b;
  padding: 8px 0;
}

.blog-side-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit;
  transition: background-color 0.2s ease;
}

.blog-side-item:hover {
  background: #fafafa;
}

.blog-side-item__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(248, 174, 46, 0.16);
  color: #222322;
  font-size: 14px;
}

.blog-side-item__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-side-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-side-item__thumb.is-placeholder {
  background:
    linear-gradient(135deg, #222322 0%, #2f302f 100%);
  color: #f8ae2e;
  font-size: 14px;
}

.blog-side-item__copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.blog-side-item__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f8ae2e;
}

.blog-side-item__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #222322;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-side-item:hover .blog-side-item__title {
  color: #222322;
}

.blog-side-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #6b6b6b;
}

.blog-side-item__meta i {
  color: #f8ae2e;
  font-size: 11px;
}

.blog-side-item__meta--price {
  font-weight: 700;
  color: #222322;
}

@media (max-width: 991px) {
  .blog-sidebar {
    position: static;
    margin-top: 28px;
  }
}

@media (max-width: 767px) {
  .blog-catalog {
    padding: 24px 0 56px;
  }

  .blog-card {
    flex-direction: column;
  }

  .blog-card__media {
    flex: none;
    max-width: none;
    width: 100%;
    height: 180px;
    min-height: 0;
  }

  .blog-card__body {
    padding: 18px 16px 20px;
  }

  .blog-card__title {
    font-size: 17px;
  }
}

/* =========================================================
   Leitura do post
   ========================================================= */

.page-blog-post #wrapper {
  background: #f5f5f5;
}

.blog-post {
  padding: 28px 0 72px;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(248, 174, 46, 0.08), transparent 60%),
    #f5f5f5;
}

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

.blog-post__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #6b6b6b !important;
  text-decoration: none !important;
  transition: color 0.2s ease, gap 0.2s ease;
}

.blog-post__back:hover {
  color: #222322 !important;
  gap: 12px;
}

.blog-post__back i {
  font-size: 12px;
  color: #f8ae2e;
}

.blog-post__article {
  background: #fff;
  border: 1px solid rgba(34, 35, 34, 0.06);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(34, 35, 34, 0.06);
  margin-bottom: 24px;
  animation: blogPostFade 0.55s ease both;
}

@keyframes blogPostFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-post__header {
  margin-bottom: 22px;
}

.blog-post__category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(248, 174, 46, 0.16);
  color: #8a5f00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-post__title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: #222322;
  font-family: var(--font_family_heading);
}

.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-post__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #6b6b6b;
}

.blog-post__meta i {
  color: #f8ae2e;
  font-size: 12px;
}

.blog-post__share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #222322;
  cursor: pointer;
  transition: color 0.2s ease;
}

.blog-post__share:hover {
  color: #f8ae2e;
}

.blog-post__cover {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #f0f0f0;
  border: 1px solid rgba(34, 35, 34, 0.06);
}

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

.blog-post__cover.is-placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 80% at 70% 20%, rgba(248, 174, 46, 0.22), transparent 55%),
    linear-gradient(135deg, #222322 0%, #2f302f 100%);
}

.blog-post__cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(248, 174, 46, 0.18);
  color: #f8ae2e;
  font-size: 28px;
}

.blog-post__lead {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-left: 3px solid #f8ae2e;
  border-radius: 0 12px 12px 0;
  background: rgba(248, 174, 46, 0.08);
  font-size: 16px;
  line-height: 1.65;
  color: #4a4a4a;
  font-weight: 500;
}

.blog-post__content {
  font-size: 16px;
  line-height: 1.8;
  color: #3a3a3a;
}

.blog-post__content > *:first-child {
  margin-top: 0;
}

.blog-post__content > *:last-child {
  margin-bottom: 0;
}

.blog-post__content p {
  margin: 0 0 1.15em;
}

.blog-post__content h2,
.blog-post__content h3,
.blog-post__content h4 {
  margin: 1.6em 0 0.7em;
  color: #222322;
  font-family: var(--font_family_heading);
  font-weight: 700;
  line-height: 1.3;
}

.blog-post__content h2 { font-size: 24px; }
.blog-post__content h3 { font-size: 20px; }
.blog-post__content h4 { font-size: 17px; }

.blog-post__content ul,
.blog-post__content ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.blog-post__content li {
  margin-bottom: 0.45em;
}

.blog-post__content a {
  color: #222322;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(248, 174, 46, 0.7);
}

.blog-post__content a:hover {
  color: #f8ae2e;
}

.blog-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.2em 0;
}

.blog-post__content blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-left: 3px solid #f8ae2e;
  background: #fafafa;
  border-radius: 0 12px 12px 0;
  color: #4a4a4a;
  font-style: italic;
}

/* --- Comentários --- */
.blog-comments {
  background: #fff;
  border: 1px solid rgba(34, 35, 34, 0.06);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(34, 35, 34, 0.06);
  margin-bottom: 24px;
  animation: blogPostFade 0.65s ease 0.08s both;
}

.blog-comments__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(34, 35, 34, 0.08);
}

.blog-comments__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #222322;
  font-family: var(--font_family_heading);
}

.blog-comments__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(248, 174, 46, 0.18);
  color: #222322;
  font-size: 12px;
  font-weight: 700;
}

.blog-comments__list {
  margin-bottom: 24px;
}

.blog-comment {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(34, 35, 34, 0.06);
}

.blog-comment:last-child {
  border-bottom: none;
}

.blog-comment__avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
}

.blog-comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-comment__body {
  min-width: 0;
  flex: 1;
}

.blog-comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.blog-comment__name {
  font-size: 14px;
  font-weight: 700;
  color: #222322;
}

.blog-comment__date {
  font-size: 12px;
  color: #9a9a9a;
}

.blog-comment__text {
  font-size: 14px;
  line-height: 1.65;
  color: #4a4a4a;
}

.blog-comments__empty {
  text-align: center;
  padding: 28px 12px;
  color: #6b6b6b;
}

.blog-comments__empty i {
  display: block;
  margin: 0 auto 10px;
  font-size: 28px;
  color: #f8ae2e;
}

.blog-comments__empty p {
  margin: 0;
  font-size: 14px;
}

.blog-comments__form-wrap {
  padding-top: 8px;
  border-top: 1px solid rgba(34, 35, 34, 0.08);
}

.blog-comments__form-title {
  margin: 16px 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #222322;
  font-family: var(--font_family_heading);
}

.blog-comments__form-note {
  margin: 0 0 16px;
  font-size: 13px;
  color: #6b6b6b;
}

.blog-comments__form .form-control {
  min-height: 120px;
  border-radius: 14px;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  padding: 14px 16px;
  font-size: 14px;
  color: #222322;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.blog-comments__form .form-control:focus {
  outline: none;
  background: #fff;
  border-color: #f8ae2e;
  box-shadow: 0 0 0 3px rgba(248, 174, 46, 0.18);
}

.blog-comments__submit {
  width: auto;
  min-width: 200px;
  padding: 0 24px;
}

@media (max-width: 767px) {
  .blog-post {
    padding: 20px 0 56px;
  }

  .blog-post__article,
  .blog-comments {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .blog-post__title {
    font-size: 24px;
  }

  .blog-post__cover.is-placeholder {
    min-height: 160px;
  }

  .blog-comments__submit {
    width: 100%;
  }
}

