/* Blog listing & article pages */

.blog-page-hero {
  background: #f8f8f8;
  padding: 140px 0 50px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.blog-page-hero h1 {
  font-size: 46px;
  line-height: 60px;
  color: #2293D7;
  margin-bottom: 16px;
}

.blog-page-hero p {
  font-size: 16px;
  line-height: 28px;
  color: #848991;
  max-width: 640px;
  margin: 0 auto;
}

.blog-listing {
  padding: 60px 0 90px;
  background: #f8f8f8;
}

.blog-listing .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.blog-card {
  background: #fff;
  box-shadow: 0 5px 30px rgba(214, 215, 216, 0.57);
  transition: box-shadow 0.3s;
  overflow: hidden;
}

.blog-card:hover {
  box-shadow: 0 5px 45px rgba(175, 177, 177, 0.57);
}

.blog-card-thumb {
  display: block;
  overflow: hidden;
}

.blog-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-placeholder {
  width: 100%;
  padding-bottom: 56%;
  background: linear-gradient(135deg, #e8f4fc 0%, #d0e8f7 100%);
  position: relative;
}

.blog-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/logo-2.png') center / 80px no-repeat;
  opacity: 0.15;
}

.blog-card-body {
  padding: 24px 20px 28px;
  text-align: left;
}

.blog-category {
  margin-bottom: 10px;
}

.blog-category a,
.blog-category span {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(0, 0, 0, 0.45);
}

.blog-category a:hover {
  color: #2293D7;
}

.blog-card-title {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-card-title a {
  color: #343638;
}

.blog-card-title a:hover {
  color: #2293D7;
}

.blog-date {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 500;
}

.blog-date a {
  color: rgba(0, 0, 0, 0.45);
}

.blog-date a:hover {
  color: #2293D7;
}

/* Article single */
.article-page {
  padding: 0 0 90px;
  background: #fff;
}

.article-header {
  background: #2293D7;
  padding: 140px 0 50px;
  text-align: center;
  color: #fff;
}

.article-header .article-meta {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.article-header .article-meta span + span::before {
  content: ' · ';
}

.article-header h1 {
  font-size: 40px;
  line-height: 52px;
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 600;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 24px 0;
}

.article-body p {
  font-size: 17px;
  line-height: 30px;
  color: #848991;
  margin-bottom: 20px;
}

.article-body h3 {
  font-size: 24px;
  line-height: 36px;
  color: #343638;
  margin: 40px 0 16px;
  font-weight: 600;
}

.article-body h4 {
  font-size: 17px;
  line-height: 28px;
  color: #343638;
  margin: 28px 0 12px;
  font-weight: 600;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px 24px;
  color: #848991;
}

.article-body li {
  font-size: 17px;
  line-height: 30px;
  margin-bottom: 8px;
}

.article-body strong {
  color: #343638;
  font-weight: 600;
}

.article-body em {
  font-style: italic;
}

.article-body hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 36px 0;
}

.article-cover {
  margin: 36px auto 28px;
  max-width: 420px;
  text-align: center;
}

.article-cover a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.article-cover figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 22px;
  color: #848991;
}

.article-video {
  margin: 36px auto 28px;
  max-width: 420px;
  text-align: center;
}

.article-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  background: #111;
  border-radius: 12px;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.article-video figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 22px;
  color: #848991;
  text-align: center;
}

@media (min-width: 769px) {
  .article-video {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .article-video video {
    max-height: 500px;
  }
}

@media (max-width: 480px) {
  .article-video {
    max-width: 100%;
  }

  .article-video video {
    max-height: 520px;
  }
}

.article-body blockquote {
  border-left: 4px solid #2293D7;
  padding: 16px 24px;
  margin: 28px 0;
  background: #f8f8f8;
}

.article-body blockquote p {
  font-size: 18px;
  line-height: 32px;
  color: #343638;
  margin-bottom: 0;
}

.article-body a {
  color: #2293D7;
}

.article-body a:hover {
  color: #1a7ab8;
}

.instagram-card {
  margin: 32px 0;
  padding: 24px;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  text-align: center;
}

.instagram-card a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2293D7;
}

.instagram-card svg {
  flex-shrink: 0;
}

.article-footer-cta {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 32px 24px;
  background: #f8f8f8;
  text-align: center;
  border-radius: 8px;
}

.article-footer-cta p {
  font-size: 16px;
  color: #848991;
  margin-bottom: 16px;
}

.article-nav {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.article-nav a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2293D7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-nav a:hover {
  color: #343638;
}

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

@media (max-width: 767px) {
  .blog-page-hero h1,
  .article-header h1 {
    font-size: 28px;
    line-height: 38px;
  }

  .blog-listing .blog-grid {
    grid-template-columns: 1fr;
  }

  .article-body h3 {
    font-size: 20px;
    line-height: 30px;
  }
}
