/* ===========================
   Blog Shared
=========================== */

.blog-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5042EC;
  margin-bottom: 12px;
}

/* ===========================
   Resources Tabs
=========================== */

.resources-tabs {
  border-bottom: 1px solid #f0f0f0;
  background: white;
  position: sticky;
  top: 72px;
  z-index: 10;
}

.resources-tabs-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.resources-tabs-inner::-webkit-scrollbar {
  display: none;
}

.resources-tab {
  flex-shrink: 0;
  display: inline-block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #82808D;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.resources-tab:hover {
  color: #3D3C42;
}

.resources-tab.active {
  color: #5042EC;
  border-bottom-color: #5042EC;
  font-weight: 600;
}

/* ===========================
   Blog Listing — Hero
=========================== */

.blog-hero {
  padding: 8rem 0 3rem;
  background: white;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 4rem;
  left: 20%;
  width: 600px;
  height: 500px;
  background: linear-gradient(135deg, rgba(207, 117, 255, 0.06), rgba(91, 237, 254, 0.06));
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.blog-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #3D3C42;
  line-height: 1.1;
  letter-spacing: -0.02em;
  position: relative;
}

/* ===========================
   Blog Listing — Featured Section
=========================== */

.blog-featured {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid #f3f3f9;
}

.blog-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}

/* Main featured card */
.blog-featured-main {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-featured-main-img {
  width: 100%;
  aspect-ratio: 572 / 322;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}

.blog-featured-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-featured-main:hover .blog-featured-main-img img {
  transform: scale(1.03);
}

.blog-featured-main-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3D3C42;
  line-height: 1.35;
  margin: 10px 0 8px;
}

/* List cards (right column) */
.blog-featured-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-list-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 16px;
  border: 1px solid #F3F3F9;
  border-radius: 8px;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-list-card:hover {
  border-color: rgba(80, 66, 236, 0.2);
  box-shadow: 0 4px 16px rgba(80, 66, 236, 0.06);
}

.blog-list-card-img {
  flex-shrink: 0;
  width: 100px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
}

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

.blog-list-card-info {
  flex: 1;
  min-width: 0;
}

.blog-list-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #3D3C42;
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Shared card elements */
.blog-card-category {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5042EC;
}

.blog-card-tagline {
  font-size: 13px;
  color: #3D3C42;
  line-height: 1.55;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-author {
  font-size: 11px;
  font-weight: 500;
  color: #5A585F;
  margin-top: 20px;
  letter-spacing: 0.03em;
}

.blog-by {
  color: #929099;
}

/* ===========================
   Blog Listing — Grid
=========================== */

.blog-listing {
  padding: 3rem 0 5rem;
}

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

.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 572 / 322;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 16px;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 0;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #3D3C42;
  line-height: 1.45;
  margin: 8px 0 0;
}

/* ===========================
   Empty State
=========================== */

.resources-empty {
  padding: 4rem 0 6rem;
  text-align: center;
  color: #82808D;
  font-size: 15px;
}

/* ===========================
   Blog Post Page
=========================== */

.blog-post {
  padding-top: 72px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #82808D;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 2rem 0 1rem;
  transition: color 0.2s;
}

.blog-back-link:hover {
  color: #3D3C42;
}

.blog-post-header {
  margin: 24px 0 28px;
}

.blog-post-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #3D3C42;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.blog-post-meta {
  font-size: 14px;
  color: #82808D;
}

.blog-post-category {
  font-weight: 600;
  text-transform: uppercase;
  color: #5042EC;
  margin-left: 4px;
}

.blog-post-author-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid #F3F3F9;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.blog-post-author-name {
  font-size: 16px;
  font-weight: 600;
  color: #3D3C42;
}

.blog-post-author-tagline {
  font-size: 13px;
  color: #82808D;
  margin-top: 4px;
}

.blog-share {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-share-label {
  font-size: 13px;
  color: #82808D;
  white-space: nowrap;
}

.blog-share-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.blog-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #5A585F;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, background 0.2s;
  padding: 0;
  font-family: inherit;
}

.blog-share-btn:hover {
  opacity: 0.7;
  background: #f5f5f5;
}

.blog-copy-toast {
  position: absolute;
  top: -36px;
  right: 0;
  background: #3D3C42;
  color: white;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.blog-copy-toast.visible {
  opacity: 1;
}

.blog-post-cover {
  margin: 0 0 48px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-post-cover img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 560px;
}

/* ===========================
   Blog Content Typography
=========================== */

.blog-content {
  padding-bottom: 80px;
  font-size: 17px;
  line-height: 1.8;
  color: #3D3C42;
}

.blog-content p {
  margin-bottom: 1.5em;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  font-weight: 700;
  color: #121211;
  line-height: 1.25;
  margin: 2em 0 0.6em;
  letter-spacing: -0.01em;
}

.blog-content h1 { font-size: 2rem; }
.blog-content h2 { font-size: 1.625rem; }
.blog-content h3 { font-size: 1.375rem; }
.blog-content h4 { font-size: 1.125rem; }

.blog-content h1:first-child,
.blog-content h2:first-child,
.blog-content h3:first-child {
  margin-top: 0;
}

.blog-content ul,
.blog-content ol {
  margin: 0 0 1.5em 1.5em;
}

.blog-content li {
  margin-bottom: 0.5em;
}

.blog-content strong {
  font-weight: 700;
  color: #121211;
}

.blog-content em {
  font-style: italic;
}

.blog-content a {
  color: #5042EC;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.blog-content a:hover {
  opacity: 0.75;
}

.blog-content blockquote {
  border-left: 4px solid #5042EC;
  padding: 0.75em 1.25em;
  margin: 1.75em 0;
  background: rgba(80, 66, 236, 0.04);
  border-radius: 0 8px 8px 0;
}

.blog-content blockquote p {
  margin: 0;
  font-style: italic;
  color: #5A585F;
}

.blog-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 10px;
  padding: 1.25em 1.5em;
  overflow-x: auto;
  margin: 1.75em 0;
  font-size: 0.875em;
  line-height: 1.6;
}

.blog-content code {
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.875em;
}

.blog-content p code,
.blog-content li code {
  background: rgba(80, 66, 236, 0.08);
  color: #5042EC;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.blog-content figure {
  margin: 2em 0;
  text-align: center;
}

.blog-content figure img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.blog-content figcaption {
  text-align: center;
  font-size: 13px;
  color: #82808D;
  margin-top: 8px;
}

.blog-content img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 1.5em auto;
}

/* ===========================
   Responsive
=========================== */

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

@media (max-width: 768px) {
  .blog-hero {
    padding: 7rem 0 2.5rem;
  }

  .blog-featured-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-featured-main-title {
    font-size: 1.375rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-post-author-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-content {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .blog-list-card {
    flex-direction: column;
  }

  .blog-list-card-img {
    width: 100%;
    height: 180px;
  }
}
