.site-header .menu-item {
  list-style: none;
}

.site-header .dropdown-menu {
  padding: 8px;
  border-color: var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-xs);
}

.site-header .dropdown-menu a {
  display: block;
  padding: 8px 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  border-radius: 6px;
}

.site-header .dropdown-menu a:hover,
.site-header .dropdown-menu a:focus {
  color: var(--brand-dark);
  background: var(--bg-soft);
}

.blog-sort-form {
  flex: 0 0 auto;
}

#blog-posts {
  scroll-margin-top: 112px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
}

.tab-btn:hover,
.tab-btn:focus {
  color: var(--brand-dark);
}

.featured-article > a {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-article > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-title-row h2 a {
  color: inherit;
}

.page-numbers.dots {
  pointer-events: none;
}

.pagination-list .active {
  color: var(--text-secondary);
  background: var(--bg-soft);
}

.page-arrow.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.blog-empty {
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.blog-empty h2,
.related-heading h2,
.single-content h1 {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: 0px;
}

.blog-empty p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 24px;
}

.blog-detail-page {
  padding: 40px 0 96px;
}

.blog-breadcrumb {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
}

.blog-breadcrumb a {
  color: var(--brand-dark);
}

.blog-breadcrumb span:last-child {
  min-width: 0;
  overflow: hidden;
  color: var(--text-secondary);
  text-overflow: ellipsis;
}

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

.single-detail-header {
  margin-bottom: 24px;
}

.detail-category-pill {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 4px 10px;
  color: #6b46c1;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  background: #f3edff;
  border-radius: 4px;
}

.single-detail-header h1 {
  margin: 0 0 16px;
  color: var(--text-primary);
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: 0px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.detail-meta .avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.detail-hero {
  margin-bottom: 32px;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f7f7f7;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.single-content {
  max-width: 100%;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 26px;
  overflow-wrap: break-word;
}

.single-content > *:last-child {
  margin-bottom: 0;
}

.single-content p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 26px;
}

.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
  margin: 32px 0 16px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0px;
}

.single-content h1:first-child,
.single-content h2:first-child,
.single-content h3:first-child,
.single-content h4:first-child,
.single-content h5:first-child,
.single-content h6:first-child {
  margin-top: 0;
}

.single-content h1 {
  font-size: 32px;
  line-height: 40px;
}

.single-content h2 {
  font-size: 26px;
  line-height: 34px;
}

.single-content h3 {
  font-size: 22px;
  line-height: 30px;
}

.single-content h4 {
  font-size: 20px;
  line-height: 28px;
}

.single-content h5 {
  font-size: 18px;
  line-height: 26px;
}

.single-content h6 {
  font-size: 16px;
  line-height: 24px;
}

.single-content ul,
.single-content ol {
  margin: 0 0 20px;
  padding-left: 26px;
  color: var(--text-muted);
}

.single-content ul {
  list-style: disc outside;
}

.single-content ol {
  list-style: decimal outside;
}

.single-content ul ul {
  list-style-type: circle;
}

.single-content ul ul ul {
  list-style-type: square;
}

.single-content li {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 26px;
}

.single-content li::marker {
  color: var(--brand);
}

.single-content li > ul,
.single-content li > ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

.single-content strong,
.single-content b {
  color: var(--text-primary);
  font-weight: 700;
}

.single-content a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-content a:hover,
.single-content a:focus {
  color: var(--text-primary);
}

.single-content blockquote,
.single-content .wp-block-quote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  color: var(--text-secondary);
  border-left: 4px solid var(--brand);
}

.single-content blockquote p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 28px;
}

.single-content figure,
.single-content .wp-block-image {
  margin: 28px 0;
}

.single-content figure img,
.single-content .wp-block-image img {
  height: auto;
  border-radius: 8px;
}

.single-content figcaption,
.single-content .wp-element-caption {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.single-content table,
.single-content .wp-block-table table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 24px;
}

.single-content th,
.single-content td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.single-content th {
  color: var(--text-primary);
  font-weight: 700;
  background: var(--bg-soft);
}

.single-content code {
  padding: 2px 5px;
  color: var(--text-primary);
  font-size: 0.92em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.single-content pre {
  margin: 24px 0;
  padding: 16px;
  overflow-x: auto;
  color: #fff;
  background: #171717;
  border-radius: 8px;
}

.single-content pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
}

.author-info-section {
  margin-top: 56px;
  padding: 40px 0 56px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 36px;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.author-info-image img {
  width: 230px;
  aspect-ratio: 230 / 290;
  object-fit: cover;
  border-radius: 18px;
}

.author-info-copy h2 {
  margin: 0 0 24px;
  color: var(--text-primary);
  font-size: 34px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: 0px;
}

.author-social-links {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.author-social-links a {
  min-width: 18px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #001933;
  font-size: 22px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
}

.author-social-links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.author-info-bio {
  max-width: 890px;
}

.author-info-bio p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 28px;
}

.author-info-bio p:last-child {
  margin-bottom: 0;
}

.author-info-bio a {
  color: #00a5ff;
  font-weight: 500;
  text-decoration: none;
}

.share-strip {
  padding: 30px 0;
  border-bottom: 1px solid var(--border-strong);
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.share-row > span {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.share-row a,
.copy-link-btn {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  color: #b8edff;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
  background: #2c2c2c;
  border: 0;
  border-radius: 50%;
}

.copy-link-btn {
  cursor: pointer;
}

.copy-link-btn.copied {
  color: #fff;
  background: #0f9f6e;
  border-color: #0f9f6e;
}

.detail-newsletter {
  margin-top: 40px;
  padding: 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 180px auto;
  gap: 16px;
  align-items: center;
  background: #f7faff;
  border: 1px solid #e0e9f7;
  border-radius: 8px;
}

.detail-newsletter-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  line-height: 22px;
  background: #08214a;
  border-radius: 4px;
}

.detail-newsletter-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.detail-newsletter h2 {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0px;
}

.detail-newsletter p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 18px;
}

.detail-newsletter input {
  min-height: 38px;
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 20px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
}

.detail-newsletter button {
  min-height: 38px;
  padding: 9px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  background: #08214a;
  border: 0;
  border-radius: 4px;
}

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

.sidebar-widget {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.sidebar-widget + .sidebar-widget {
  margin-top: 24px;
}

.sidebar-widget h2 {
  margin: 0 0 16px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0px;
}

.sidebar-search input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
}

.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-categories a {
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 4px;
}

.sidebar-categories a.active,
.sidebar-categories a:hover,
.sidebar-categories a:focus {
  color: #6b46c1;
  background: #f3edff;
}

.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popular-post {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.popular-post.no-image {
  grid-template-columns: 1fr;
}

.popular-post img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.popular-post strong,
.popular-post small {
  display: block;
}

.popular-post strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.popular-post small {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 18px;
}

.related-heading {
  max-width: 768px;
  margin-bottom: 48px;
}

.footer-menu-list,
.footer-menu-list .menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.social-icons .social-menu-list {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-icons .social-menu-list a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.default-page {
  padding: 80px 0 96px;
}

@media (max-width: 1199.98px) {
  .detail-newsletter {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .detail-newsletter input,
  .detail-newsletter button {
    grid-column: 2;
  }
}

@media (max-width: 991.98px) {
  .blog-detail-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .single-detail-header h1 {
    font-size: 32px;
    line-height: 40px;
  }

  .blog-breadcrumb,
  .detail-meta,
  .single-content p,
  .single-content li,
  .author-info-bio p,
  .sidebar-search input,
  .sidebar-categories a,
  .share-row > span {
    font-size: 14px;
    line-height: 22px;
  }

  .single-content h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .single-content h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .single-content h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .single-content h4,
  .detail-newsletter h2 {
    font-size: 18px;
    line-height: 26px;
  }

  .single-content h5 {
    font-size: 16px;
    line-height: 24px;
  }

  .single-content h6 {
    font-size: 15px;
    line-height: 23px;
  }

  .author-info-section {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
  }

  .author-info-image img {
    width: 180px;
  }

  .author-info-copy h2 {
    margin-bottom: 18px;
    font-size: 29px;
    line-height: 36px;
  }

  .author-social-links {
    gap: 20px;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .blog-detail-page {
    padding: 32px 0 64px;
  }

  .blog-breadcrumb {
    margin-bottom: 24px;
    font-size: 12px;
    line-height: 18px;
  }

  .single-detail-header h1 {
    font-size: 26px;
    line-height: 33px;
  }

  .detail-meta {
    flex-wrap: wrap;
  }

  .detail-hero {
    margin-bottom: 28px;
  }

  .single-content p,
  .single-content li {
    font-size: 14px;
    line-height: 23px;
  }

  .single-content h1 {
    font-size: 24px;
    line-height: 31px;
  }

  .single-content h2 {
    font-size: 21px;
    line-height: 28px;
  }

  .single-content h3 {
    font-size: 18px;
    line-height: 25px;
  }

  .single-content h4 {
    font-size: 17px;
    line-height: 24px;
  }

  .single-content h5,
  .single-content h6 {
    font-size: 15px;
    line-height: 23px;
  }

  .single-content ul,
  .single-content ol {
    padding-left: 22px;
  }

  .single-content blockquote p {
    font-size: 16px;
    line-height: 25px;
  }

  .author-info-section {
    margin-top: 44px;
    padding: 32px 0 40px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .author-info-image img {
    width: min(230px, 100%);
  }

  .author-info-copy h2 {
    margin-bottom: 16px;
    font-size: 27px;
    line-height: 34px;
  }

  .author-info-bio p {
    font-size: 15px;
    line-height: 24px;
  }

  .share-strip {
    padding: 24px 0;
  }

  .share-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .share-row a,
  .copy-link-btn {
    width: 48px;
    height: 48px;
  }

  .detail-newsletter {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .detail-newsletter input,
  .detail-newsletter button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
