/* ══════════════════════════════════════════════════════
   GERMAN WITH DEEP — Blog Styles
   ══════════════════════════════════════════════════════ */

/* ── Blog Listing ── */
.blog-listing-section {
  background: var(--warm);
  padding: 80px 0 100px;
}

/* Featured Post */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
  margin-bottom: 70px;
  border: 2px solid var(--gray2);
  transition: box-shadow 0.3s, transform 0.3s;
}
.blog-featured:hover {
  box-shadow: 0 16px 60px rgba(0,0,0,.15);
  transform: translateY(-3px);
}
.blog-featured-img {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}
.blog-img-ph {
  width: 100%; height: 100%;
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.blog-img-ph img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.blog-category-pill {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--black);
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}
.blog-featured-content {
  padding: 40px 40px 40px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.blog-date, .blog-read {
  font-size: .78rem;
  color: var(--gray);
  font-weight: 500;
}
.blog-level-tag {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}
.blog-level-tag.a1 { background: rgba(245,194,0,.15); color: #8a6a00; }
.blog-level-tag.a2 { background: rgba(245,194,0,.2);  color: #7a5c00; }
.blog-level-tag.b1 { background: rgba(204,0,0,.1);    color: var(--red); }
.blog-level-tag.b2 { background: rgba(204,0,0,.15);   color: var(--red); }
.blog-level-tag.c1 { background: rgba(26,39,68,.1);   color: #1a2744; }

.blog-featured-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1.25;
}
.blog-featured-excerpt {
  font-size: .92rem;
  color: var(--text2);
  line-height: 1.75;
}

/* Blog Grid */
.blog-section-title { margin-bottom: 36px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--gray2);
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 45px rgba(0,0,0,.13);
  border-color: var(--black);
}
.blog-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.blog-card-img .blog-img-ph { min-height: 200px; }
.blog-card-content {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}
.blog-card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1.35;
}
.blog-card-excerpt {
  font-size: .85rem;
  color: var(--text2);
  line-height: 1.7;
  flex: 1;
}
.blog-read-more {
  font-weight: 700;
  font-size: .85rem;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: color 0.2s, gap 0.2s;
}
.blog-read-more:hover { color: var(--red); gap: 10px; }

/* CTA box */
.blog-cta-box {
  background: var(--black);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 4px solid var(--yellow);
}
.blog-cta-text h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.blog-cta-text p {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  max-width: 480px;
}

/* ══════════════════════════════════════════════════════
   BLOG POST PAGE
   ══════════════════════════════════════════════════════ */
.blog-post-section {
  background: var(--warm);
  padding: 60px 0 100px;
}
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  align-items: start;
}

/* Article */
.blog-article {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 52px;
  box-shadow: 0 4px 28px rgba(0,0,0,.08);
}
.article-header { margin-bottom: 36px; }
.article-category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.article-category {
  background: var(--black);
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}
.article-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray2);
}
.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-weight: 700; font-size: .88rem; color: var(--black); }
.author-title { font-size: .73rem; color: var(--gray); }
.article-date, .article-read-time {
  font-size: .78rem;
  color: var(--gray);
}

/* Hero image */
.article-hero-img {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
  background: linear-gradient(135deg, var(--black), #2a2a2a);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}
.article-hero-img img {
  width: 100%; height: 320px;
  object-fit: cover; display: block;
  border-radius: 14px;
}

/* Article body typography */
.article-body { color: var(--text); line-height: 1.85; }
.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--black);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}
.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
  margin: 28px 0 10px;
}
.article-body p {
  font-size: .95rem;
  color: var(--text2);
  margin-bottom: 18px;
  line-height: 1.85;
}
.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul li {
  padding-left: 20px;
  position: relative;
  font-size: .93rem;
  color: var(--text2);
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
}
.article-body ol li {
  font-size: .93rem;
  color: var(--text2);
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-body strong { color: var(--black); font-weight: 700; }
.article-body em { color: var(--red); font-style: normal; font-weight: 700; }

/* Highlight box inside article */
.article-highlight {
  background: rgba(245,194,0,.08);
  border-left: 4px solid var(--yellow);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: .92rem;
  color: var(--text2);
  line-height: 1.7;
}
.article-highlight strong { color: var(--black); }

/* Info table */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.article-table th {
  background: var(--black);
  color: var(--yellow);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
}
.article-table td {
  padding: 13px 18px;
  font-size: .88rem;
  color: var(--text2);
  border-bottom: 1px solid var(--gray2);
  background: var(--white);
}
.article-table tr:last-child td { border-bottom: none; }
.article-table tr:hover td { background: var(--warm); }
.article-table td:first-child { font-weight: 700; color: var(--black); }

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid var(--gray2);
}
.article-tag {
  background: var(--warm);
  border: 1.5px solid var(--gray2);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray);
  transition: all 0.2s;
}
.article-tag:hover { background: var(--black); color: var(--yellow); border-color: var(--black); }

/* Author Box */
.author-box {
  background: var(--warm);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 36px;
  border: 2px solid var(--gray2);
}
.author-box-img {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
}
.author-box-img img { width: 100%; height: 100%; object-fit: cover; }
.author-box-name { font-family: var(--font-head); font-size: 1rem; font-weight: 900; color: var(--black); margin-bottom: 3px; }
.author-box-role { font-size: .75rem; font-weight: 700; color: var(--red); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.author-box-bio { font-size: .85rem; color: var(--text2); line-height: 1.65; }

/* ── SIDEBAR ── */
.blog-sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 100px; }

.sidebar-widget {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 22px;
  border: 2px solid var(--gray2);
  box-shadow: 0 3px 16px rgba(0,0,0,.06);
}
.sidebar-widget-title {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray2);
}

/* CTA sidebar widget */
.sidebar-cta {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  text-align: center;
}
.sidebar-cta .sidebar-widget-title { color: var(--yellow); border-color: rgba(255,255,255,.1); }
.sidebar-cta p { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 18px; line-height: 1.6; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* Related posts */
.sidebar-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray2);
  text-decoration: none;
  transition: opacity 0.2s;
}
.sidebar-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-post:hover { opacity: 0.75; }
.sp-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--warm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.sp-title { font-size: .83rem; font-weight: 700; color: var(--black); line-height: 1.4; }
.sp-meta  { font-size: .72rem; color: var(--gray); margin-top: 3px; }

/* Level tags in sidebar */
.sidebar-levels { display: flex; flex-direction: column; gap: 10px; }
.sl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--warm);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.sl-item:hover { background: var(--black); }
.sl-item:hover .sl-name, .sl-item:hover .sl-count { color: var(--white); }
.sl-name  { font-size: .85rem; font-weight: 700; color: var(--black); }
.sl-count { font-size: .75rem; color: var(--gray); background: var(--white); padding: 2px 10px; border-radius: 50px; }

/* ── Related Articles at bottom ── */
.related-articles { margin-top: 60px; }
.related-articles h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 28px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.related-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--gray2);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--black); }
.related-card-img {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.related-card-info { padding: 16px 18px; }
.related-card-title { font-size: .88rem; font-weight: 800; color: var(--black); line-height: 1.35; margin-bottom: 6px; }
.related-card-meta  { font-size: .73rem; color: var(--gray); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .blog-post-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .blog-article { padding: 32px 28px; }
}
@media (max-width: 768px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 220px; }
  .blog-featured-content { padding: 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-cta-box { flex-direction: column; text-align: center; }
  .blog-article { padding: 24px 20px; }
  .article-table { font-size: .8rem; }
}
