/*================= BLOG ============ */
.blog__top_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-image: linear-gradient(90deg, #ffebeb, #fbf5fd);
  padding: 6rem 0 13rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 0 1%;
  max-width: 1200px;
  margin: -7% auto 5% auto;
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: brightness(0.6);
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.blog-date {
  color: #777777a4;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
/* HERO */
.blog-hero {
  background-image: linear-gradient(270deg, #ffebeb, #fbf5fd);
  position: relative;
}

.blog-hero__content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem 13rem 2rem;
  position: relative;
  z-index: 2;
}

.blog-hero__text-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 3;
  position: relative;
}

.blog-hero__image-column {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  max-width: 800px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.blog-hero__image-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post__wrapper {
  max-width: 1280px;
  margin: 21rem auto;
  display: flex;
}
.blog-sidebar {
  position: sticky;
  top: 15rem;
  align-self: flex-start;
  width: 25%;
  padding-right: 2rem;
}

.post__content {
  width: 75%;
}

.blog-sidebar__back-link {
  color: #111;
}

.blog-sidebar__back-link:hover {
  color: #f44326;
}

.post__text {
  color: #111 !important;
}

.post__text {
  line-height: 1.7;
  font-size: 18px;
  color: #333;
  padding: 2rem 0;
}

.post__text h1,
.post__text h2,
.post__text h3,
.post__text h4,
.post__text h5,
.post__text h6 {
  margin: 2rem 0 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
}

.post__text h1 {
  font-size: 2.25rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}
.post__text h2 {
  font-size: 1.75rem;
}
.post__text h3 {
  font-size: 1.5rem;
}
.post__text h4 {
  font-size: 1.25rem;
}
.post__text h5 {
  font-size: 1.1rem;
}
.post__text h6 {
  font-size: 1rem;
  color: #666;
}

.post__text p {
  margin-bottom: 1rem;
}

.post__text ul,
.post__text ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post__text ul li {
  list-style: disc;
  margin-bottom: 0.5rem;
}

.post__text ol li {
  list-style: decimal;
  margin-bottom: 0.5rem;
}

.post__text a {
  color: #0070f3;
  text-decoration: underline;
}
.post__text a:hover {
  color: #0048a3;
}

.post__text blockquote {
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 4px solid #ccc;
  color: #666;
  font-style: italic;
}

.post__text code {
  background-color: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95em;
}

.post__text pre {
  background-color: #f0f0f0;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.post__text img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
}

.blog-hero__site-name {
  text-transform: uppercase;
}

.blog-category {
  text-transform: uppercase;
}

@media (max-width: 769px) {
  .post__wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .blog-sidebar,
  .post__content {
    width: 100%;
    margin: 0 2%;
  }
}
