/* Blog listing & detail pages */
.cdx-blog-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #202060 0%, #2a2a72 60%, #1e1557 100%);
  color: #fff;
}

.cdx-blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
  line-height: 1.15;
  color: #ffffff;
}

.cdx-blog-hero p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.cdx-blog-section {
  padding: 60px 0 80px;
  background: #f7f8fb;
}

.cdx-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.cdx-blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(32, 32, 96, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cdx-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(32, 32, 96, 0.12);
}

.cdx-blog-card__image {
  aspect-ratio: 16 / 9;
  background: #e8e8f5;
  overflow: hidden;
}

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

.cdx-blog-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e8f5 0%, #cfcfe8 100%);
  color: #6868b8;
}

.cdx-blog-card__placeholder .material-icons-outlined {
  font-size: 3rem;
}

.cdx-blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cdx-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #7a7a8e;
}

.cdx-blog-card__category {
  color: #F58634;
  font-weight: 600;
}

.cdx-blog-card__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.35;
}

.cdx-blog-card__title a {
  color: #202060;
  text-decoration: none;
}

.cdx-blog-card__title a:hover {
  color: #F58634;
}

.cdx-blog-card__excerpt {
  margin: 0 0 18px;
  color: #5a5a6e;
  line-height: 1.6;
  flex: 1;
}

.cdx-blog-card__link {
  color: #F58634;
  font-weight: 600;
  text-decoration: none;
}

.cdx-blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: #5a5a6e;
}

.cdx-blog-pagination {
  margin-top: 40px;
}

.cdx-blog-pagination nav {
  display: flex;
  justify-content: center;
}

/* Detail page */
.cdx-blog-detail-hero {
  padding: 80px 0 40px;
  background: linear-gradient(135deg, #202060 0%, #2a2a72 60%, #1e1557 100%);
  color: #fff;
}

.cdx-blog-detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.cdx-blog-detail-hero__category {
  background: rgba(245, 134, 52, 0.2);
  color: #ffb87a;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.cdx-blog-detail-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 14px;
  line-height: 1.15;
  max-width: 900px;
  color: #ffffff;
}

.cdx-blog-detail-hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
  margin: 0;
  line-height: 1.6;
}

.cdx-blog-detail-banner {
  background: #0f0f1f;
}

.cdx-blog-detail-banner__wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.cdx-blog-detail-banner__image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 16px 40px rgba(32, 32, 96, 0.18);
}

.cdx-blog-detail-featured {
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
  max-width: 960px;
}

.cdx-blog-detail-featured img {
  width: 100%;
  display: block;
}

.cdx-blog-detail-content {
  padding: 60px 0 80px;
  background: #fff;
}

.cdx-blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

.cdx-blog-article {
  max-width: 760px;
  color: #2a2a3a;
  line-height: 1.75;
  font-size: 1.05rem;
}

.cdx-blog-article__body {
  width: 100%;
}

.cdx-blog-article__empty {
  padding: 32px;
  background: #f7f8fb;
  border-radius: 12px;
  color: #5a5a6e;
  text-align: center;
}

.cdx-blog-article__body h1,
.cdx-blog-article h2,
.cdx-blog-article h3,
.cdx-blog-article h4,
.cdx-blog-article__body h2,
.cdx-blog-article__body h3,
.cdx-blog-article__body h4 {
  color: #202060;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.cdx-blog-article p,
.cdx-blog-article__body p {
  margin: 0 0 1.25rem;
}

.cdx-blog-article ul,
.cdx-blog-article ol,
.cdx-blog-article__body ul,
.cdx-blog-article__body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.cdx-blog-article a,
.cdx-blog-article__body a {
  color: #F58634;
}

.cdx-blog-article img,
.cdx-blog-article__body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.cdx-blog-article blockquote,
.cdx-blog-article__body blockquote {
  margin: 1.5rem 0;
  padding: 16px 20px;
  border-left: 4px solid #F58634;
  background: #f7f8fb;
  color: #404052;
}

.cdx-blog-article table,
.cdx-blog-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.cdx-blog-article th,
.cdx-blog-article td,
.cdx-blog-article__body th,
.cdx-blog-article__body td {
  border: 1px solid #e1e1e8;
  padding: 10px 12px;
  text-align: left;
}

.cdx-blog-sidebar-thumb {
  width: 100%;
  border-radius: 12px;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cdx-blog-sidebar-card--thumb {
  padding: 12px;
}

.cdx-blog-sidebar {
  position: sticky;
  top: 100px;
}

.cdx-blog-sidebar-card {
  background: #f7f8fb;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.cdx-blog-sidebar-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #202060;
}

.cdx-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cdx-blog-tag {
  background: #e8e8f5;
  color: #202060;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.cdx-blog-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cdx-blog-related-list li + li {
  margin-top: 12px;
}

.cdx-blog-related-list a {
  color: #202060;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
}

.cdx-blog-related-list a:hover {
  color: #F58634;
}

.cdx-blog-faq {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e1e1e8;
}

.cdx-blog-faq h2 {
  color: #202060;
  margin-bottom: 20px;
}

.cdx-blog-faq-item {
  background: #f7f8fb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
}

.cdx-blog-faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #202060;
}

.cdx-blog-faq-item p {
  margin: 0;
  color: #5a5a6e;
}

@media (max-width: 900px) {
  .cdx-blog-detail-layout {
    grid-template-columns: 1fr;
  }

  .cdx-blog-sidebar {
    position: static;
  }
}
