@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600&family=Playfair+Display:wght@500;700&family=Merriweather:wght@400;700&family=Roboto+Mono:wght@400;600&display=swap');

.article-content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2e2c72;
}

.article-content p {
  margin: 0;
  line-height: 1.7;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #241f56;
  margin-bottom: 0.5rem;
}

.article-content h2 {
  font-size: 2rem;
}

.article-content h3 {
  font-size: 1.5rem;
}

.article-content h4 {
  font-size: 1.25rem;
}

.article-content blockquote {
  font-size: 1.2rem;
  font-style: italic;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid rgba(91, 54, 245, 0.5);
  background: rgba(91, 54, 245, 0.08);
  border-radius: 12px;
  color: #3d3979;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article-content li {
  line-height: 1.6;
}

.article-content img {
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 22px 40px rgba(46, 44, 114, 0.18);
  display: block;
}

.article-content figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.article-content figcaption {
  font-size: 0.9rem;
  color: #6b68a5;
}

.article-content iframe,
.article-content video {
  width: 100%;
  min-height: 320px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(46, 44, 114, 0.2);
}

.article-content .ql-align-center,
.article-content .ql-align-center * {
  text-align: center;
}

.article-content .ql-align-right,
.article-content .ql-align-right * {
  text-align: right;
}

.article-content .ql-align-justify,
.article-content .ql-align-justify * {
  text-align: justify;
}

.article-content .ql-size-small {
  font-size: 0.9rem;
}

.article-content .ql-size-large {
  font-size: 1.35rem;
}

.article-content .ql-size-huge {
  font-size: 2.2rem;
  line-height: 1.2;
}

.article-content .ql-font-serif {
  font-family: 'Lora', 'Georgia', serif;
}

.article-content .ql-font-playfair {
  font-family: 'Playfair Display', 'Georgia', serif;
}

.article-content .ql-font-merriweather {
  font-family: 'Merriweather', 'Times New Roman', serif;
}

.article-content .ql-font-lora {
  font-family: 'Lora', 'Georgia', serif;
}

.article-content .ql-font-montserrat {
  font-family: 'Montserrat', sans-serif;
}

.article-content .ql-font-museomoderno {
  font-family: 'MuseoModerno', sans-serif;
}

.article-content .ql-font-roboto-mono,
.article-content pre,
.article-content code {
  font-family: 'Roboto Mono', 'Courier New', monospace;
}

.article-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.2rem;
  border-radius: 16px;
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.article-content code {
  background: rgba(46, 44, 114, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 30px rgba(46, 44, 114, 0.12);
}

.article-content th,
.article-content td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(46, 44, 114, 0.12);
}

.article-content th {
  background: rgba(91, 54, 245, 0.12);
  font-weight: 700;
}

.article-content sup {
  vertical-align: super;
  font-size: 0.75em;
}

.article-content sub {
  vertical-align: sub;
  font-size: 0.75em;
}

.article-content a {
  color: #5b36f5;
  font-weight: 600;
  text-decoration: underline;
}

.article-content hr {
  border: none;
  border-top: 2px dashed rgba(91, 54, 245, 0.2);
  margin: 2.5rem 0;
}

.article-content .ql-video {
  width: 100%;
  height: auto;
  min-height: 320px;
}

.blog-shell {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem 0 4rem;
}

.blog-hero {
  background: linear-gradient(135deg, rgba(46, 44, 114, 0.95), rgba(116, 43, 177, 0.9));
  color: #fff;
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}

.blog-hero h1 {
  font-family: 'MuseoModerno', sans-serif;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-hero p {
  font-size: 1.1rem;
  max-width: 540px;
}

.badge-gradient {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.blog-search {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.blog-search .search-input {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  backdrop-filter: blur(4px);
}

.blog-search .search-input i {
  font-size: 1.3rem;
  margin-right: 0.5rem;
}

.blog-search input[type="search"] {
  border: none;
  background: transparent;
  color: #fff;
  width: 100%;
  outline: none;
}

.blog-search .cta-button {
  white-space: nowrap;
}

.blog-search .reset-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.blog-tags h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(46, 44, 114, 0.1);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  color: #2e2c72;
}

.tag-pill.active {
  background: rgba(46, 44, 114, 1);
  color: #fff;
}

.blog-featured .featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 40px rgba(46, 44, 114, 0.1);
}

.featured-media {
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-body h2 a {
  color: #2e2c72;
  text-decoration: none;
}

.featured-body .excerpt {
  color: #45436b;
  line-height: 1.6;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #6a6891;
}

.meta .separator {
  opacity: 0.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: #742bb1;
}

.blog-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(46, 44, 114, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(46, 44, 114, 0.16);
}

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

.blog-card .card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card h3 a {
  color: #2e2c72;
  text-decoration: none;
}

.blog-card .excerpt {
  color: #565483;
  font-size: 0.95rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  background: rgba(46, 44, 114, 0.05);
  border-radius: 18px;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.pagination .page-link {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 44, 114, 0.3);
  text-decoration: none;
  color: #2e2c72;
}

.pagination .page-link.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.pagination .page-info {
  font-weight: 600;
}

.blog-article-shell {
  display: grid;
  gap: 3rem;
  padding: 3rem 0 4rem;
}

.preview-banner {
  background: rgba(255, 193, 7, 0.18);
  border-left: 4px solid #ffc107;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: #564108;
}

.blog-article {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 44px rgba(46, 44, 114, 0.1);
}

.article-header {
  display: flex;
  flex-direction: column;
}

.article-cover {
  height: 340px;
  background-size: cover;
  background-position: center;
}

.article-header h1 {
  font-family: 'MuseoModerno', sans-serif;
  font-weight: 600;
  font-size: 2.2rem;
  padding: 2.5rem 2.5rem 0 2.5rem;
}

.article-excerpt {
  padding: 0 2.5rem 2rem 2.5rem;
  font-size: 1.1rem;
  color: #565483;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 2.5rem 2.5rem 0 2.5rem;
  color: #6a6891;
}

.article-content {
  padding: 0 2.5rem 2.5rem 2.5rem;
  line-height: 1.75;
  color: #2b294c;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2.5rem;
  font-family: 'MuseoModerno', sans-serif;
}

.article-content pre {
  background: #0f0f2b;
  color: #f7f7fb;
  padding: 1rem;
  border-radius: 14px;
  overflow-x: auto;
}

.article-footer {
  border-top: 1px solid rgba(46, 44, 114, 0.08);
  padding: 2rem 2.5rem;
}

.article-footer h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.blog-cta {
  background: linear-gradient(135deg, rgba(116, 43, 177, 0.12), rgba(46, 44, 114, 0.15));
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
}

.blog-cta h2 {
  font-family: 'MuseoModerno', sans-serif;
  margin-bottom: 0.75rem;
}

.related-posts .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .blog-featured .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-media {
    min-height: 240px;
  }

  .article-header h1,
  .article-content,
  .article-excerpt,
  .article-meta,
  .article-footer {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

@media (max-width: 768px) {
  .blog-search {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-hero {
    padding: 2.5rem 2rem;
  }

  .blog-cta {
    padding: 2rem;
  }
}
