/* Blog — Modern Professional Layout */

.blog-page {
  padding-bottom: 2rem;
}

/* Blog Listing Hero */
.blog-hero {
  background: linear-gradient(135deg, #173B45 0%, #0b1220 100%);
  padding: 2rem 1.25rem 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero__inner {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.blog-hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.blog-hero__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.blog-hero__subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 768px) {
  .blog-hero {
    padding: 2.5rem 2rem 3rem;
    margin-bottom: 2rem;
  }

  .blog-hero__title {
    font-size: 1.75rem;
  }

  .blog-hero__subtitle {
    font-size: 1rem;
  }
}

/* Blog Post Cards (Listing) */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

@media (min-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.blog-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(var(--brand-primary-rgb), 0.15);
  transform: translateY(-2px);
  color: inherit;
}

.blog-card__thumb {
  aspect-ratio: 16 / 10;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

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

.blog-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.08), rgba(var(--brand-primary-rgb), 0.04));
  color: var(--brand-primary);
  font-size: 2rem;
}

.blog-card__body {
  padding: 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__date {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}

.blog-card__excerpt {
  font-size: 0.875rem;
  color: rgba(15, 23, 42, 0.7);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Blog Pagination */
.blog-pagination {
  margin-top: 2rem;
}

.blog-pagination .pagination {
  justify-content: center;
}

.blog-pagination .page-link {
  border-radius: 10px;
  margin: 0 2px;
}

/* Blog Show (Single Post) */
.blog-post-page {
  padding-bottom: 2rem;
}

.blog-post-hero {
  background: linear-gradient(135deg, #173B45 0%, #0b1220 100%);
  padding: 2rem 1.25rem 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.blog-post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.blog-post-hero .container {
  position: relative;
  z-index: 1;
}

.blog-post-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.blog-post-hero__back:hover {
  color: #fff;
}

.blog-post-hero__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.blog-post-hero__date {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .blog-post-hero {
    padding: 2.5rem 2rem 3rem;
    margin-bottom: 2rem;
  }

  .blog-post-hero__title {
    font-size: 1.75rem;
  }
}

/* Blog Post Article */
.blog-article {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.blog-article__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.04);
}

.blog-article__body {
  padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
  .blog-article__body {
    padding: 2rem 2.5rem;
  }
}

.blog-article__content {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(15, 23, 42, 0.85);
}

.blog-article__content p {
  margin-bottom: 1rem;
}

.blog-article__content p:last-child {
  margin-bottom: 0;
}

.blog-article__additional {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.78);
}

.blog-article__additional p {
  margin-bottom: 0.75rem;
}

.blog-article__additional p:last-child {
  margin-bottom: 0;
}
