/* ============================================
   BLOGUM — Components (from personal-blog-blue.html)
   ============================================ */

/* ============ HERO ============ */
.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 86px 0 70px;
  width: min(var(--max-w), calc(100% - 40px));
  margin: 0 auto;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.hero-section::before {
  width: 80px;
  height: 80px;
  left: -48px;
  top: 80px;
  background: rgba(37, 99, 235, .12);
  filter: blur(1px);
}

.hero-section::after {
  width: 420px;
  height: 420px;
  right: -130px;
  top: 40px;
  background: rgba(147, 197, 253, .18);
  filter: blur(22px);
}

.hero-text {
  min-width: 0;
}

.hero-greeting {
  display: inline-block;
  color: var(--blue-600);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0;
  max-width: 610px;
  color: var(--navy);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.07em;
  font-weight: 700;
}

.hero-subtitle {
  max-width: 520px;
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 24px 0 28px;
  color: #475569;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-social {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: .9rem;
}

.hero-social-label {
  font-size: .9rem;
}

.hero-social-links {
  display: flex;
  gap: 10px;
}

.hero-social-links a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(37, 99, 235, .12);
  color: var(--muted);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.hero-social-links a:hover {
  transform: translateY(-3px);
  background: var(--blue-50);
  color: var(--blue-700);
}

/* Hero Visual (image side) */
.hero-image {
  position: relative;
  min-height: 430px;
}

.hero-image-wrapper {
  position: absolute;
  inset: 30px 0 0 58px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .14);
  box-shadow: var(--shadow);
  transition: transform .35s ease;
}

.hero-image-wrapper:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 370px;
  filter: saturate(1.06);
}

.hero-bg {
  position: absolute;
  inset: 0 70px 70px 0;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(219, 234, 254, .85), rgba(255, 255, 255, .3));
  border: 1px solid rgba(37, 99, 235, .10);
  backdrop-filter: blur(18px);
}

.hero-dots {
  position: absolute;
  right: -34px;
  top: 14px;
  width: 160px;
  height: 160px;
  background-image: radial-gradient(rgba(37, 99, 235, .28) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
}

@media(max-width:980px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 58px;
  }

  .hero-image {
    min-height: 360px;
  }

  .hero-image-wrapper {
    inset: 30px 0 0 0;
  }
}

@media(max-width:680px) {
  .hero-title {
    font-size: 2.7rem;
  }
}

/* ============ SECTIONS ============ */
.site-content {
  width: min(var(--max-w), calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
}

.section {
  padding: 40px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--navy);
  font-size: 1.55rem;
  letter-spacing: -.04em;
}

.section-title .section-icon {
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
}

.section-link {
  color: var(--blue-700);
  font-weight: 700;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .25s ease;
}

.section-link:hover {
  gap: 8px;
  color: var(--blue-700);
}

/* ============ FEATURED CARDS ============ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

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

.card {
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .06);
  transition: transform .3s ease, box-shadow .3s ease, border .3s ease;
}

.card:hover {
  transform: translateY(-8px);
  /* box-shadow: 0 24px 54px rgba(30, 64, 175, .13); */
  box-shadow: var(--soft-shadow);
  border-color: rgba(65, 100, 175, 0.28);
}

.card-thumbnail {
  position: relative;
  height: 210px;
  overflow: hidden;
  display: block;
}

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

.card:hover .card-thumbnail img {
  transform: scale(1.06);
}

.card-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-100), rgba(255, 255, 255, .5));
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  font-size: .76rem;
  font-weight: 800;
}

.card-body {
  padding: 20px;
}

.card-title {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.35;
  letter-spacing: -.03em;
}

.card-title a {
  color: var(--navy);
}

.card-title a:hover {
  color: var(--blue-700);
}

.card-excerpt {
  margin: 0 0 18px;
  line-height: 1.65;
  color: #475569;
  font-size: .94rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: .85rem;
}

.card-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.meta-dot {
  margin: 0 2px;
}

.card-author-avatar {
  margin-left: auto;
}

.card-author-avatar img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .14);
}

/* ============ NEWSLETTER ============ */
.newsletter-section {
  padding: 42px 0 64px;
}

.newsletter-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, .16);
  background: linear-gradient(135deg, rgba(239, 246, 255, .86), rgba(255, 255, 255, .72));
  box-shadow: 0 18px 46px rgba(37, 99, 235, .09);
}

.newsletter-info {
  display: flex;
  gap: 18px;
  align-items: center;
}

.newsletter-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.6rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  box-shadow: 0 14px 28px rgba(37, 99, 235, .24);
}

.newsletter-title {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.28rem;
  font-weight: 700;
}

.newsletter-desc {
  margin: 0;
  color: #475569;
  line-height: 1.6;
  font-size: .94rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, .18);
  outline: none;
  background: rgba(255, 255, 255, .86);
  font-family: var(--font);
  font-size: .92rem;
  color: var(--text);
}

.newsletter-input:focus {
  border-color: var(--blue-500);
}

.btn-accent {
  color: white;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 12px 28px rgba(37, 99, 235, .28);
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-family: var(--font);
  font-size: .92rem;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, .20);
}

.newsletter-form-wrapper {
  width: 100%;
}

/* MC4WP Plugin Support */
.mc4wp-form-fields,
.mc4wp-form>div:first-child {
  /* Handling default wrappers */
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.mc4wp-form p {
  margin: 0;
  flex: 1;
  display: flex;
}

.mc4wp-form p:last-child {
  flex: 0 0 auto;
}

.mc4wp-form label {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.mc4wp-form input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, .18);
  outline: none;
  background: rgba(255, 255, 255, .86);
  font-family: var(--font);
  font-size: .92rem;
  color: var(--text);
}

.mc4wp-form input[type="submit"] {
  color: white;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 12px 28px rgba(37, 99, 235, .28);
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-family: var(--font);
  font-size: .92rem;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}

.mc4wp-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, .20);
}

@media(max-width:680px) {

  .mc4wp-form-fields,
  .mc4wp-form>div:first-child {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Force vertical layout in Sidebar */
.sidebar .newsletter-form,
.sidebar .mc4wp-form-fields,
.sidebar .mc4wp-form>div:first-child {
  flex-direction: column !important;
  align-items: stretch !important;
}

.sidebar .newsletter-form input,
.sidebar .mc4wp-form input {
  width: 100% !important;
}

@media(max-width:980px) {
  .newsletter-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media(max-width:680px) {
  .newsletter-bar {
    padding: 22px;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* ============ LATEST LIST ============ */
.latest-list {
  display: grid;
  gap: 18px;
}

.list-item {
  display: grid;
  grid-template-columns: 220px 1fr 40px;
  gap: 22px;
  align-items: center;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(37, 99, 235, .10);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-thumbnail {
  width: 220px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

.list-item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-item-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-100), rgba(255, 255, 255, .5));
  border-radius: 12px;
}

.list-item-content {
  min-width: 0;
}

.list-item-category {
  color: var(--blue-700);
  font-weight: 600;
  font-size: .82rem;
  padding: 4px 8px;
  background: rgba(var(--white), 0.4);
  border: 1px solid var(--line);
  border-radius: 99px;
}

.list-item-title {
  margin: 8px 0;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 700;
}

.list-item-title a {
  color: var(--navy);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.list-item-title a:hover {
  color: var(--blue-700);
}

.list-item-excerpt {
  margin: 0 0 10px;
  line-height: 1.55;
  color: #475569;
  font-size: .92rem;
}

.list-item-meta {
  color: var(--muted);
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.list-item-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.list-item-bookmark {
  color: var(--blue-800);
  font-size: 1.4rem;
  opacity: .72;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity .25s ease;
}

.list-item-bookmark:hover {
  opacity: 1;
}

@media(max-width:980px) {
  .list-item {
    grid-template-columns: 160px 1fr 32px;
  }

  .list-item-thumbnail {
    width: 160px;
  }
}

@media(max-width:680px) {
  .list-item {
    grid-template-columns: 1fr;
  }

  .list-item-thumbnail {
    width: 100%;
    height: 190px;
  }

  .list-item-bookmark {
    display: none;
  }
}

/* ============ FOOTER ============ */
.site-footer {
  margin-top: 72px;
  padding: 48px 0 36px;
  border-top: 1px solid rgba(37, 99, 235, .12);
  /* background: rgba(255, 255, 255, .62); */
  background: linear-gradient(135deg, rgba(239, 246, 255, .86), rgba(255, 255, 255, .72));
  backdrop-filter: blur(24px);
}

.footer-inner {
  width: min(var(--max-w), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 34px;
}

.footer-logo {
  display: block;
  margin-bottom: 12px;
}

.footer-logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}

.footer-logo:hover {
  color: var(--navy);
}

.footer-about {
  color: var(--muted);
  line-height: 1.8;
  font-size: .94rem;
  margin-bottom: 16px;
}

.footer-copyright {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.footer-copyright a {
  color: var(--blue-600);
  font-weight: 600;
  transition: color .25s ease;
}

.footer-copyright a:hover {
  color: var(--blue-800);
}

.footer-bottom {
  width: min(var(--max-w), calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 0;
  margin-top: 34px;
  border-top: 1px solid rgba(37, 99, 235, .10);
  text-align: center;
}

.footer-col-title {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1rem;
}

/* Footer Widget Styles — Clean & Independent */
.footer-widget {
  background: none !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.footer-widget-title {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-widget ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-widget ul li {
  padding: 0 !important;
  margin-bottom: 8px !important;
  border: none !important;
  background: none !important;
}

.footer-widget ul li a {
  color: var(--muted) !important;
  line-height: 1.8 !important;
  font-size: .94rem !important;
  transition: color .25s ease !important;
  text-decoration: none !important;
}

.footer-widget ul li a:hover {
  color: var(--blue-700) !important;
}

.footer-widget select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links li {
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  line-height: 1.8;
  font-size: .94rem;
  transition: color .25s ease;
}

.footer-links a:hover {
  color: var(--blue-700);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  margin-top: 0;
}

.footer-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(37, 99, 235, .12);
  color: var(--muted);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: var(--blue-50);
  color: var(--blue-700);
}

.footer-newsletter-label {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 10px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.footer-newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, .18);
  outline: none;
  background: rgba(255, 255, 255, .86);
  font-family: var(--font);
  font-size: .88rem;
}

.footer-newsletter-form input:focus {
  border-color: var(--blue-500);
}

.footer-newsletter-form .btn {
  min-height: 42px;
  padding: 0 14px;
}

@media(max-width:980px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:680px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, .26);
  background: rgba(255, 255, 255, .82);
  color: var(--blue-700);
  box-shadow: 0 16px 34px rgba(93, 109, 139, 0.15);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: .25s ease;
  cursor: pointer;
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(30, 64, 175, .2);
}

@media(max-width:680px) {
  .back-to-top {
    right: 18px;
    bottom: 18px;
  }
}

/* ============ PAGINATION ============ */
.pagination,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.page-numbers {
  padding: 8px 14px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(37, 99, 235, .13);
  border-radius: 10px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  transition: all .25s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
}

/* ============ ALL ARTICLES PAGE ============ */
.all-articles-section {
  padding: 48px 0 24px;
}

.all-articles-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(37, 99, 235, .10);
}

.all-articles-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--navy);
  font-size: 1.55rem;
  letter-spacing: -.04em;
}

.all-articles-title .section-icon {
  color: var(--blue-600);
  display: inline-flex;
}

.all-articles-title span:last-child {
  color: var(--blue-600);
}

.all-articles-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

/* Centered variant */
.all-articles-header.centered {
  align-items: center;
  text-align: center;
}

.all-articles-header-text.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.centered .all-articles-title {
  justify-content: center;
}

/* Search bar — full width */
.all-articles-search {
  width: 70%;
}

.all-articles-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 20px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
}

.all-articles-search-icon {
  color: var(--blue-500);
  flex-shrink: 0;
}

.all-articles-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  padding: 6px 0;
}

.all-articles-search-input::placeholder {
  color: var(--muted);
}

/* 2-column grid variant */
.latest-list--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 36px;
}

.latest-list--grid .list-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(37, 99, 235, .10);
}

@media(max-width:980px) {
  .latest-list--grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ============ ANIMATIONS ============ */
.fade-target {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}

.fade-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SINGLE POST / ARCHIVE (existing support) ============ */
.archive-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(37, 99, 235, .10);
}

.archive-title {
  font-size: 1.6rem;
  letter-spacing: -.03em;
}

.archive-title span {
  color: var(--blue-600);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

@media(max-width:680px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ SINGLE POST LAYOUT ============ */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}

@media(max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.single-post-header {
  margin-bottom: 32px;
}

.main-content--page {
  max-width: 1000px;
  margin: 0 auto;
}

.single-page-header {
  margin-bottom: 24px;

  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.breadcrumb-nav a:hover {
  color: var(--blue-600);
}

.breadcrumb-separator {
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.single-post-categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 8px;
}

.categories-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin-right: 8px;
}

.category-item {
  color: var(--blue-600);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  padding: 4px 8px;
  background: rgba(var(--white), 0.4);
  border: 1px solid var(--line);
  border-radius: 99px;
}

.category-item:hover {
  color: var(--blue-800);
}

.category-separator {
  margin: 0 10px;
  color: var(--blue-200);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
}

.single-post-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 16px 0;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.single-page-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 16px 0;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.single-post-excerpt {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.single-post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.post-actions {
  display: flex;
  gap: 12px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  /* background: transparent; */
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--blue-50);
  color: var(--blue-600);
  border-color: var(--blue-200);
  transform: translateY(-2px);
}

.single-post-thumbnail {
  margin: 40px 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.single-post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* Entry content prose */
.entry-content {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #334155;
}

pre,
code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}



.entry-content h2,
.entry-content h3 {
  margin: 2em 0 0.8em;
  font-weight: 800;
}

.entry-content p {
  margin-bottom: 1.6em;
}

/* .entry-content img {
  max-width: 100% !important;
  height: auto !important;
  margin: 1.5em 0;
} */

.entry-content img {
  max-width: 100% !important;
  height: auto !important;
}

.entry-content .alignleft,
.entry-content img.alignleft {
  float: left;
  margin: 0.3em 1.5em 1em 0;
}

.entry-content .alignright,
.entry-content img.alignright {
  float: right;
  margin: 0.3em 0 1em 1.5em;
}

.entry-content .aligncenter,
.entry-content img.aligncenter {
  display: block;
  margin: 1.5em auto;
}

.entry-content figure,
.entry-content .wp-block-image {
  max-width: 100%;
  overflow: hidden;
}

.entry-content blockquote {
  position: relative;
  padding: 32px 32px 32px 64px;
  background: var(--blue-50);
  border-radius: 24px;
  margin: 40px 0;
  font-style: italic;
  color: var(--blue-900);
  border: none;
}

.entry-content blockquote::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 24px;
  font-size: 4.5rem;
  opacity: 0.15;
  font-family: serif;
}

/* Checkmark List */
.entry-content ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  list-style: none;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background-color: var(--blue-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  mask-size: 12px;
  border-radius: 50%;
}

/* Tags Footer */
.single-post-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tags-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.post-tag {
  font-size: 0.85rem;
  padding: 6px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.post-tag:hover {
  background: var(--blue-50);
  color: var(--blue-600);
  border-color: var(--blue-200);
}

/* Author Bio Bottom */
.author-bio--bottom {
  background: var(--white);
  padding: 36px;
  border-radius: 32px;
  border: 1px solid var(--line);
  display: flex;
  gap: 32px;
  margin: 60px 0;
  align-items: center;
  box-shadow: var(--soft-shadow);
}

.author-bio--bottom .author-avatar img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.author-bio--bottom .author-info {
  flex: 1;
}

.author-bio--bottom .author-name {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.author-bio--bottom .author-description {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.post-navigation .nav-links {
  display: contents;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
  text-decoration: none;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.nav-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

/* Comments */
.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(37, 99, 235, .10);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list .comment {
  padding: 20px;
  border: 1px solid rgba(37, 99, 235, .10);
  border-radius: 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, .76);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, .86);
  font-family: var(--font);
  font-size: .92rem;
  margin-bottom: 16px;
  transition: border-color .25s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--blue-500);
}

/* 404 */
.main-content--full {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.error-404 {
  text-align: center;
  padding: 40px 24px;
}

.error-404-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-404-button {
  margin-top: 50px;
}

.digit.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  20%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .6;
  }
}

/* ============ SIDEBAR ============ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.widget {
  /* background: var(--white); */
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.widget.widget_archive {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  text-align: left;
  padding: 32px;
}



.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--navy);
  border-bottom: none;
  padding-bottom: 0;
}

/* Related Posts Widget */
.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-post-item {
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
}

.related-post-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-post-info {
  min-width: 0;
}

.related-post-info h4 {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--navy);
  overflow-wrap: anywhere;
  word-break: break-word;
}


.related-post-date {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sidebar Widget Lists — Global Reset for Premium Look */
.sidebar .widget ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sidebar .widget ul li {
  list-style: none !important;
  margin: 0 !important;
  padding: 2px 2px !important;
}

.sidebar .widget ul li::before {
  content: none !important;
  display: none !important;
}

/* Category & Archive List Sidebar — Premium Style */
.widget_categories li,
.widget_archive li {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(37, 99, 235, .07) !important;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--text);
  transition: padding-left .25s ease, color .25s ease;
}

.widget_categories li:first-child,
.widget_archive li:first-child {
  padding-top: 0 !important;
}

.widget_categories li:last-child,
.widget_archive li:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.widget_categories li:hover,
.widget_archive li:hover {
  padding-left: 6px !important;
}

.widget_categories li a,
.widget_archive li a {
  color: var(--text);
  font-weight: 500;
  transition: color .25s ease;
  display: inline-block;
}

.widget_categories li:hover a,
.widget_archive li:hover a {
  color: var(--blue-600);
}

.widget_categories .count,
.widget_archive .count {
  background: rgba(37, 99, 235, .06);
  color: var(--blue-600);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
  margin-left: 12px;
  transition: all .25s ease;
  border: 1px solid rgba(37, 99, 235, .08);
}

.widget_categories li:hover .count,
.widget_archive li:hover .count {
  background: var(--blue-500);
  color: white;
  border-color: var(--blue-500);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* "View all" footer link */
.widget-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(37, 99, 235, .07);
  color: var(--blue-600);
  font-weight: 700;
  font-size: 0.88rem;
  transition: gap .25s ease, color .25s ease;
  width: 100%;
  text-decoration: none;
}

.widget-view-all:hover {
  gap: 10px;
  color: var(--blue-700);
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  text-align: center;
  padding: 32px;
}

.newsletter-icon {
  width: 54px;
  height: 54px;
  background: var(--blue-500);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.newsletter-widget h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.newsletter-widget p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Tags Sidebar */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tagcloud a {
  font-size: 0.82rem !important;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.highlight {
  color: var(--blue-600);
}

.about-me-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* tengah horizontal */
}

.about-me-content .avatar {
  border-radius: 50%;
  margin-bottom: 2px;
  box-shadow: var(--soft-shadow);
}

.about-me-content h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.about-me-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  outline: none;
  font-family: var(--font);
}

.newsletter-form input:focus {
  border-color: var(--blue-500);
}

/* No results 
.no-results {
  text-align: center;
  padding: 60px 24px;
}*/

/* No results - clean full center */
.no-results {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 50vh;
  padding: 80px 24px;
}

.no-results-content {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.no-results-icon {
  margin-bottom: 24px;
  color: var(--blue-200);
  opacity: 0.8;
}

.no-results-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.no-results-text {
  color: var(--muted);
  margin-bottom: 24px;
}

/* WP alignments */
.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 24px;
  margin-bottom: 16px;
}

.alignright {
  float: right;
  margin-left: 24px;
  margin-bottom: 16px;
}

.wp-caption-text {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  padding: 8px 0;
}

/* Search form shared */
.search-form-inner {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, .18);
  outline: none;
  background: rgba(255, 255, 255, .86);
  font-family: var(--font);
  font-size: .92rem;
}

.search-input:focus {
  border-color: var(--blue-500);
}

.search-submit {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: transform .25s ease;
}

.search-submit:hover {
  transform: translateY(-2px);
}

.post-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.single-post-meta-bar .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
}