/*=============== BLOG ===============*/
.blog {
  position: relative;
  padding-top: 5rem;
}

.blog__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.blog__header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.blog__meta {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  margin-bottom: 1.5rem;
}

.blog__featured-image {
  margin-bottom: 2.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.blog__featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Blog listing page */
.blog__empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-color-light);
}

.blog__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

.blog__card {
  background-color: var(--container-color);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(255, 90%, 8%, .07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog__card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 8px 24px hsla(255, 90%, 8%, .1);
}

.blog__card-image {
  height: 200px;
  overflow: hidden;
}

.blog__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.blog__card:hover .blog__card-image img {
  transform: scale(1.05);
}

.blog__card-image-placeholder {
  background: linear-gradient(135deg, var(--gray-border), var(--text-color-light));
  width: 100%;
  height: 100%;
}

.blog__card-content {
  padding: 1.5rem;
}

.blog__card-date {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  margin-bottom: 0.5rem;
}

.blog__card-title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog__card-title a {
  color: var(--title-color);
  transition: color 0.3s;
}

.blog__card-title a:hover {
  color: var(--first-color);
}

.blog__card-summary {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.blog__card-link {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  transition: column-gap 0.3s;
}

.blog__card-link i {
  font-size: 1.25rem;
  transition: transform 0.3s;
}

.blog__card-link:hover {
  column-gap: 0.5rem;
}

.blog__card-link:hover i {
  transform: translateX(0.25rem);
}

/* Blog content sections */
.text-section {
  margin-bottom: 2.5rem;
}

.text-section__heading {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}

.text-section__content {
  color: var(--text-color);
  line-height: 1.6;
}

.text-section__content p {
  margin-bottom: 1rem;
}

.text-section__content h2 {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.text-section__content h3 {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.text-section__content ul,
.text-section__content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.text-section__content li {
  margin-bottom: 0.5rem;
}

.text-section__content a {
  color: var(--first-color);
  text-decoration: underline;
  transition: color 0.3s;
}

.text-section__content a:hover {
  color: var(--second-color);
}

/* Image section styles */
.image-section {
  margin-bottom: 2.5rem;
}

.image-section__image-container {
  text-align: center;
}

.image-section__image {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.image-section__caption {
  text-align: center;
  margin-top: 0.75rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  font-style: italic;
}

/* Quote section styles */
.quote-section {
  margin-bottom: 2.5rem;
}

.quote-section__quote {
  background-color: var(--container-color);
  border-left: 4px solid var(--first-color);
  padding: 1.5rem;
  margin: 0;
  border-radius: 0 0.25rem 0.25rem 0;
}

.quote-section__text {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1rem;
}

.quote-section__attribution {
  display: block;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  text-align: right;
}

/* Blog post navigation */
.blog__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-border);
}

.blog__nav-link {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.3s;
}

.blog__nav-link:hover {
  color: var(--second-color);
}

.blog__nav-back {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .blog__container {
    padding: 1.5rem 1rem;
  }
  
  .blog__title {
    font-size: 1.75rem;
  }
  
  .blog__nav {
    flex-direction: column;
    gap: 1rem;
  }
}

@media screen and (min-width: 580px) {
  .blog__grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1150px) {
  .blog__container {
    padding: 3rem 2rem;
  }
  
  .blog__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .text-section__content {
    font-size: var(--normal-font-size);
  }
  
  .quote-section__text {
    font-size: 1.5rem;
  }
} 