.blog-page {
  background: #f8fafc;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
}

.blog-article main {
  width: 100%;
}

/* -----------------------------------------------
   Blog Article Modern Layout
   ----------------------------------------------- */
.blog-article .blog-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  color: #1a1a1a;
  line-height: 1.75;
}

.blog-article .blog-hero {
  width: 100%;
  height: 340px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  background: #0f172a;
}

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

.blog-article .blog-hero.is-placeholder img {
  opacity: 0.82;
  filter: saturate(0.8);
}

.blog-article .blog-title {
  font-size: 32px;
  font-weight: 700;
  color: #0a2a43;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-article .blog-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #5a6170;
  margin-bottom: 24px;
}

.blog-article .blog-meta {
  font-size: 14px;
  color: #6e7a8a;
  margin-bottom: 28px;
}

.blog-article .blog-content {
  font-size: 18px;
  color: #1a1a1a;
}

.blog-article .blog-content h2 {
  font-size: 26px;
  margin-top: 36px;
  margin-bottom: 16px;
  color: #0043a6;
  font-weight: 600;
}

.blog-article .blog-content h3 {
  font-size: 22px;
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #0a2a43;
}

.blog-article .blog-content p {
  margin-bottom: 20px;
}

.blog-article .blog-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: block;
}

.blog-article .callout-box {
  background: #f1f7ff;
  border-left: 4px solid #0043a6;
  padding: 16px 20px;
  border-radius: 4px;
  margin: 24px 0;
  font-size: 17px;
  color: #0a2a43;
}

.blog-article .blog-content blockquote {
  border-left: 4px solid #0043a6;
  padding-left: 16px;
  margin: 20px 0;
  font-style: italic;
  color: #2f3a45;
}

.blog-article .blog-divider {
  margin: 40px 0;
  height: 1px;
  background: #e6e8ec;
  width: 100%;
}

.blog-article .related-posts {
  margin-top: 50px;
}

.blog-article .related-posts h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #0a2a43;
}

.blog-article .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.blog-article .related-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e6e8ec;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-article .related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.blog-article .related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.blog-article .related-card-title {
  font-size: 17px;
  padding: 14px;
  color: #0a2a43;
  font-weight: 600;
}

/* Post layout */
.post-hero {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  align-self: end;
}

.post-hero img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.post-hero.is-placeholder img {
  opacity: 0.82;
  filter: saturate(0.85);
}

.post-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
  column-gap: 22px;
  row-gap: 18px;
  align-items: start;
}

.post-main {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 2.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.post-main .blog-title {
  margin-bottom: 0.5rem;
}

.post-main .blog-subtitle {
  margin: 0 0 0.75rem 0;
  font-size: 1.05rem;
  color: #475569;
}

.post-main .blog-meta {
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  color: #6b7280;
  font-weight: 700;
}

.post-main .blog-content {
  margin-top: 0.5rem;
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: start;
}

.post-sidebar .search-widget {
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 1rem;
  border: 1px solid #d8dee9;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-status {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.search-input-wrap input:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.search-input-wrap .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

@media (max-width: 600px) {
  .blog-article .blog-title {
    font-size: 26px;
  }
  .blog-article .blog-hero {
    height: 220px;
  }
  .blog-article .blog-content {
    font-size: 17px;
  }
}

.blog-page .breadcrumb-nav {
  margin-top: 1rem;
}

.blog-article-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  padding: 2.75rem 1.5rem;
  border-bottom: 4px solid #dc2626;
  margin-bottom: 2.5rem;
}

.blog-article-hero .article-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.article-hero-eyebrow {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #bfdbfe;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.article-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 0.5rem;
}

.blog-article-meta {
  font-weight: 600;
  color: #cbd5f5;
  margin-bottom: 0.75rem;
}

.blog-article-excerpt {
  margin: 0;
  color: #e0e7ff;
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-hero-media {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  max-height: 440px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.35);
  overflow: hidden;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.45);
}

.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero-media.is-placeholder img {
  opacity: 0.75;
}

.language-pill {
  display: inline-block;
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-top: 0.5rem;
}

.blog-hero {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: #fff;
  padding: 2.5rem 1.5rem;
  border-bottom: 4px solid #dc2626;
  margin-bottom: 2rem;
}

.blog-hero .header-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-hero h1 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.blog-hero p {
  color: #e0e7ff;
  margin: 0;
}

.breadcrumb-nav.blog-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 0.25rem;
}

/* Blog list layout */
.blog-list-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.blog-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.blog-list-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.blog-list-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.blog-list-header h1 {
  margin: 0 0 0.6rem 0;
  color: #0f172a;
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.blog-list-intro {
  margin: 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.blog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

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

.blog-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card-meta {
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
}

.blog-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.blog-card h2 a {
  color: #0f172a;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: #b91c1c;
}

.blog-card-excerpt {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.blog-card-link {
  display: inline-block;
  margin-top: auto;
  color: #b91c1c;
  font-weight: 700;
  text-decoration: none;
}

.blog-card-link:hover {
  color: #7f1d1d;
}

.blog-status {
  font-weight: 700;
  color: #1e3a8a;
  margin: 0.5rem 0;
}

.blog-list-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.sidebar-widget h3 {
  margin: 0 0 0.75rem 0;
  color: #0f172a;
  font-size: 1.05rem;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.recent-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #e5e7eb;
}

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

.recent-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.recent-meta {
  font-size: 0.82rem;
  color: #6b7280;
}

.sidebar-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-tags a {
  display: inline-block;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e2e8f0;
}

.sidebar-tags a:hover {
  background: #dbeafe;
  color: #b91c1c;
}

.blog-article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 2.25rem;
  align-items: flex-start;
}

.blog-article-content {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  padding: 2rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1f2937;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}

.blog-article-content h2,
.blog-article-content h3 {
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-article-content p {
  margin-bottom: 1.25rem;
}

.blog-article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 12px;
}

.blog-article-content ul,
.blog-article-content ol {
  padding-left: 1.4rem;
  margin: 0.75rem 0 1.5rem;
}

.blog-article-content blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #1e40af;
  background: #eff6ff;
  border-radius: 12px;
  color: #0f172a;
  font-style: italic;
}

.blog-side-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 110px;
  align-self: flex-start;
}

.blog-cta {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 20px 35px rgba(30, 64, 175, 0.3);
  text-align: left;
}

.blog-cta h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.blog-cta p {
  color: #e0f2fe;
  margin-bottom: 1rem;
}

.blog-cta a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-cta a:hover {
  background: #b91c1c;
}

.blog-quick-links {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.blog-quick-links h3 {
  margin-bottom: 0.75rem;
  color: #1e3a8a;
}

.blog-quick-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-quick-links li {
  margin-bottom: 0.5rem;
}

.blog-quick-links a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.blog-quick-links a:hover {
  color: #b91c1c;
}

/* Ensure footer sits below content, not inside layout/grid */
body.blog-page footer {
  width: 100%;
  display: block !important;
  clear: both !important;
  float: none !important;
  margin-top: 48px;
  position: relative;
}

/* Footer styling consistent with homepage */
body.blog-page footer {
  background: #1e3a8a;
  color: #fff;
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

body.blog-page .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

body.blog-page .footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #bfdbfe;
}

body.blog-page .footer-section p,
body.blog-page .footer-section a {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  text-decoration: none;
}

body.blog-page .footer-section a:hover {
  color: #bfdbfe;
}

body.blog-page .footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

@media (max-width: 1023px) {
  .blog-article-layout {
    grid-template-columns: 1fr;
    max-width: 900px;
  }
  .blog-side-panel {
    position: static;
  }
  .article-hero-media {
    min-height: 180px;
    aspect-ratio: 4 / 3;
    max-height: 360px;
  }
  .blog-list-shell {
    padding: 0 1rem 3rem;
  }
  .blog-list-layout {
    grid-template-columns: 1fr;
  }
  .blog-list-header {
    padding: 1.4rem;
  }
  .blog-card-body {
    padding: 14px 16px 16px;
  }
  .post-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0 1rem 2.5rem;
    gap: 18px;
  }
  .post-main {
    padding: 1.25rem 1.25rem 2rem;
  }
  .post-hero {
    padding: 0 1rem;
    grid-row: auto;
  }
  .post-sidebar {
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-list-header h1 {
    font-size: 1.9rem;
  }
  .blog-list-intro {
    font-size: 0.98rem;
  }
  .blog-card h2 {
    font-size: 18px;
  }
  .post-sidebar {
    grid-row: auto;
  }
}
