/* ==========================================================================
   Kalingaeuro — Single Blog Post Stylesheet
   ========================================================================== */

/* --- Fonts ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* --- Custom Properties ------------------------------------------------ */
:root {
  --ke-orange: #EC5221;
  --ke-orange-dark: #c94015;
  --ke-orange-light: rgba(236, 82, 33, 0.10);
  --ke-green: #24AD61;
  --ke-green-dark: #1c874b;
  --ke-navy: #1a1f36;
  --ke-navy-light: #272d45;
  --ke-text: #2d3748;
  --ke-text-light: #5a6270;
  --ke-text-muted: #94a3b8;
  --ke-border: #e2e8f0;
  --ke-bg: #f8fafc;
  --ke-white: #ffffff;
  --ke-radius: 12px;
  --ke-radius-sm: 8px;
  --ke-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --ke-shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --ke-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ke-font-heading: 'Poppins', sans-serif;
  --ke-font-body: 'Inter', sans-serif;
  --ke-content-max: 1200px;
  --ke-article-max: 760px;
  --ke-sidebar-width: 340px;
}

/* --- Reading Progress Bar --------------------------------------------- */
.ke-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 99999;
}

.ke-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ke-orange), #f59e0b);
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(236, 82, 33, 0.4);
  position: relative;
}

.ke-progress-text {
  position: absolute;
  top: 10px;
  right: 0;
  transform: translateX(50%);
  background: var(--ke-navy);
  color: #fff;
  font-family: var(--ke-font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.ke-progress-text::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 4px 4px 4px;
  border-style: solid;
  border-color: transparent transparent var(--ke-navy) transparent;
}

/* --- Global overflow guard (prevents any element from causing horizontal scroll) */
.ke-single-wrap,
.ke-article,
.ke-article__content,
.ke-related__inner,
.ke-post-nav,
.ke-comments,
.ke-author-bar__inner {
  max-width: 100%;
  overflow-x: clip;
}

/* --- Hero Banner ------------------------------------------------------ */
.ke-hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ke-navy);
}

.ke-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  filter: blur(1px);
}

.ke-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 31, 54, 0.92) 0%,
    rgba(26, 31, 54, 0.75) 50%,
    rgba(236, 82, 33, 0.45) 100%
  );
}

.ke-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--ke-content-max);
  margin: 0 auto;
  padding: 60px 30px 48px;
}

.ke-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ke-font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ke-hero__breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color var(--ke-transition);
}

.ke-hero__breadcrumb a:hover {
  color: var(--ke-orange);
}

.ke-hero__breadcrumb .sep {
  font-size: 0.65rem;
  opacity: 0.6;
}

.ke-hero__categories {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ke-hero__cat {
  display: inline-block;
  background: rgba(236, 82, 33, 0.25);
  color: #fbbf24;
  font-family: var(--ke-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--ke-transition);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.ke-hero__cat:hover {
  background: var(--ke-orange);
  color: #fff;
  border-color: var(--ke-orange);
}

.ke-hero__title {
  font-family: var(--ke-font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  max-width: 850px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* --- Author Info Bar -------------------------------------------------- */
.ke-author-bar {
  background: var(--ke-white);
  border-bottom: 1px solid var(--ke-border);
  padding: 0 30px;
}

.ke-author-bar__inner {
  max-width: var(--ke-content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.ke-author-bar__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ke-orange-light);
  flex-shrink: 0;
}

.ke-author-bar__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ke-author-bar__name {
  font-family: var(--ke-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ke-text);
}

.ke-author-bar__name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ke-transition);
}

.ke-author-bar__name a:hover {
  color: var(--ke-orange);
}

.ke-author-bar__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ke-font-body);
  font-size: 0.82rem;
  color: var(--ke-text-muted);
}

.ke-author-bar__meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}

.ke-author-bar__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- Main Layout ------------------------------------------------------ */
.ke-single-wrap {
  max-width: var(--ke-content-max);
  margin: 0 auto;
  padding: 40px 30px 60px;
  display: grid;
  grid-template-columns: 1fr var(--ke-sidebar-width);
  gap: 50px;
  align-items: start;
}

/* --- Article Content -------------------------------------------------- */
.ke-article {
  min-width: 0; /* prevent overflow */
}

.ke-article__content {
  font-family: var(--ke-font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ke-text);
  word-break: break-word;
}

/* Headings */
.ke-article__content h2 {
  font-family: var(--ke-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ke-navy);
  margin: 48px 0 18px;
  padding-left: 18px;
  border-left: 4px solid var(--ke-orange);
  line-height: 1.3;
  scroll-margin-top: 80px;
}

.ke-article__content h3 {
  font-family: var(--ke-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ke-navy);
  margin: 36px 0 14px;
  line-height: 1.35;
  scroll-margin-top: 80px;
}

.ke-article__content h4 {
  font-family: var(--ke-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ke-navy);
  margin: 28px 0 12px;
  scroll-margin-top: 80px;
}

.ke-article__content h2:first-child {
  margin-top: 0;
}

/* Paragraphs */
.ke-article__content p {
  margin: 0 0 22px;
}

/* Links */
.ke-article__content a {
  color: var(--ke-orange);
  text-decoration: underline;
  text-decoration-color: rgba(236, 82, 33, 0.3);
  text-underline-offset: 3px;
  transition: all var(--ke-transition);
}

.ke-article__content a:hover {
  color: var(--ke-orange-dark);
  text-decoration-color: var(--ke-orange);
}

/* Lists */
.ke-article__content ul,
.ke-article__content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.ke-article__content ul {
  list-style: none;
  padding-left: 0;
}

.ke-article__content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.ke-article__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--ke-orange);
  border-radius: 50%;
}

.ke-article__content ol li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.ke-article__content ol li::marker {
  color: var(--ke-orange);
  font-weight: 600;
}

/* Nested lists */
.ke-article__content ul ul,
.ke-article__content ol ol,
.ke-article__content ul ol,
.ke-article__content ol ul {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Blockquotes */
.ke-article__content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--ke-orange);
  background: linear-gradient(135deg, var(--ke-orange-light), rgba(236, 82, 33, 0.03));
  border-radius: 0 var(--ke-radius-sm) var(--ke-radius-sm) 0;
  font-style: italic;
  color: var(--ke-text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.ke-article__content blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables — wrapped for mobile scroll */
.ke-article__content .wp-block-table,
.ke-article__content table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  width: 100%;
  margin: 28px 0;
}

.ke-article__content .wp-block-table table,
.ke-article__content table table,
.ke-article__content > table {
  min-width: 400px;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  border-radius: var(--ke-radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin: 0;
}

.ke-article__content table thead td,
.ke-article__content table thead th,
.ke-article__content .wp-block-table table thead td,
.ke-article__content .wp-block-table table thead th {
  background: var(--ke-navy);
  color: #ffffff;
  font-family: var(--ke-font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  padding: 14px 18px;
  text-align: left;
}

/* Ensure any spans or strong tags inside the header remain white */
.ke-article__content table thead th *,
.ke-article__content table thead td * {
  color: #ffffff !important;
}

.ke-article__content table tbody td,
.ke-article__content .wp-block-table table tbody td,
.ke-article__content table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--ke-border);
  color: var(--ke-text);
  background: #ffffff;
}

.ke-article__content table tbody tr:nth-child(even) td,
.ke-article__content .wp-block-table table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.ke-article__content table tbody tr:hover td {
  background: var(--ke-orange-light);
  transition: background var(--ke-transition);
}

.ke-article__content table thead tr:hover td,
.ke-article__content table thead tr:hover th {
  background: var(--ke-navy);
}

/* Images inside content */
.ke-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ke-radius-sm);
  margin: 20px 0;
}

.ke-article__content figure {
  margin: 28px 0;
}

.ke-article__content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ke-text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* Strong / Bold */
.ke-article__content strong {
  font-weight: 600;
  color: var(--ke-navy);
}

/* Code */
.ke-article__content code {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--ke-orange-dark);
}

.ke-article__content pre {
  background: var(--ke-navy);
  color: #e2e8f0;
  padding: 24px;
  border-radius: var(--ke-radius-sm);
  overflow-x: auto;
  margin: 28px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.ke-article__content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* WP Block specific */
.ke-article__content .wp-block-table {
  overflow-x: auto;
}

/* --- Tags ------------------------------------------------------------- */
.ke-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ke-border);
}

.ke-tags__label {
  font-family: var(--ke-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ke-text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.ke-tags a {
  display: inline-block;
  background: #f1f5f9;
  color: var(--ke-text-light);
  font-family: var(--ke-font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--ke-transition);
  border: 1px solid transparent;
}

.ke-tags a:hover {
  background: var(--ke-orange-light);
  color: var(--ke-orange);
  border-color: rgba(236, 82, 33, 0.2);
}

/* --- Social Sharing --------------------------------------------------- */
.ke-share {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ke-border);
}

.ke-share__label {
  font-family: var(--ke-font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ke-text);
  margin-bottom: 14px;
}

.ke-share__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ke-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--ke-font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  transition: all var(--ke-transition);
  border: none;
  cursor: pointer;
}

.ke-share__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ke-share__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ke-share__btn--facebook { background: #1877f2; }
.ke-share__btn--facebook:hover { background: #1565c0; }

.ke-share__btn--twitter { background: #14171a; }
.ke-share__btn--twitter:hover { background: #333; }

.ke-share__btn--linkedin { background: #0a66c2; }
.ke-share__btn--linkedin:hover { background: #004182; }

.ke-share__btn--whatsapp { background: #25d366; }
.ke-share__btn--whatsapp:hover { background: #1da851; }

.ke-share__btn--copy { background: #64748b; }
.ke-share__btn--copy:hover { background: #475569; }
.ke-share__btn--copy.copied { background: var(--ke-green); }

/* --- Sidebar ---------------------------------------------------------- */
.ke-sidebar {
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ToC */
.ke-toc {
  background: var(--ke-white);
  border: 1px solid var(--ke-border);
  border-radius: var(--ke-radius);
  padding: 24px;
  box-shadow: var(--ke-shadow);
}

.ke-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ke-toc__title {
  font-family: var(--ke-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ke-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.ke-toc__title svg {
  width: 18px;
  height: 18px;
  color: var(--ke-orange);
}

.ke-toc__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ke-text-muted);
  transition: transform var(--ke-transition);
}

.ke-toc__toggle svg {
  width: 18px;
  height: 18px;
}

.ke-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ke-toc__list li {
  margin: 0;
  padding: 0;
}

.ke-toc__list li::before {
  display: none;
}

.ke-toc__link {
  display: block;
  padding: 8px 12px;
  font-family: var(--ke-font-body);
  font-size: 0.85rem;
  color: var(--ke-text-light);
  text-decoration: none;
  border-left: 2px solid var(--ke-border);
  transition: all var(--ke-transition);
  line-height: 1.4;
  margin-left: 4px;
}

.ke-toc__link:hover {
  color: var(--ke-orange);
  border-left-color: var(--ke-orange);
  background: var(--ke-orange-light);
  border-radius: 0 6px 6px 0;
}

.ke-toc__link.active {
  color: var(--ke-orange);
  border-left-color: var(--ke-orange);
  font-weight: 600;
  background: var(--ke-orange-light);
  border-radius: 0 6px 6px 0;
}

.ke-toc__link--h3 {
  padding-left: 28px;
  font-size: 0.8rem;
}

/* Recent Posts */
.ke-recent-posts {
  background: var(--ke-white);
  border: 1px solid var(--ke-border);
  border-radius: var(--ke-radius);
  padding: 24px;
  box-shadow: var(--ke-shadow);
}

.ke-recent-posts__title {
  font-family: var(--ke-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ke-navy);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ke-recent-posts__title svg {
  width: 18px;
  height: 18px;
  color: var(--ke-orange);
}

.ke-recent-post-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  transition: background var(--ke-transition);
}

.ke-recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ke-recent-post-item:first-child {
  padding-top: 0;
}

.ke-recent-post-item__img {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.ke-recent-post-item__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ke-recent-post-item__link {
  font-family: var(--ke-font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ke-text);
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--ke-transition);
}

.ke-recent-post-item__link:hover {
  color: var(--ke-orange);
}

.ke-recent-post-item__date {
  font-family: var(--ke-font-body);
  font-size: 0.72rem;
  color: var(--ke-text-muted);
}

/* CTA Card */
.ke-sidebar-cta {
  background: linear-gradient(135deg, var(--ke-navy) 0%, var(--ke-navy-light) 100%);
  border-radius: var(--ke-radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--ke-shadow-lg);
  position: relative;
  overflow: hidden;
}

.ke-sidebar-cta::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(236, 82, 33, 0.15), transparent 70%);
  border-radius: 50%;
}

.ke-sidebar-cta__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  background: var(--ke-orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ke-sidebar-cta__icon svg {
  width: 22px;
  height: 22px;
  color: var(--ke-orange);
}

.ke-sidebar-cta__title {
  font-family: var(--ke-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.ke-sidebar-cta__desc {
  font-family: var(--ke-font-body);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 18px;
  line-height: 1.5;
}

.ke-sidebar-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ke-green);
  color: #fff;
  font-family: var(--ke-font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 28px;
  text-decoration: none;
  transition: all var(--ke-transition);
  border: none;
  cursor: pointer;
}

.ke-sidebar-cta__btn:hover {
  background: var(--ke-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 173, 97, 0.3);
  color: #fff;
}

.ke-sidebar-cta__btn svg {
  width: 16px;
  height: 16px;
}

/* --- Related Posts ----------------------------------------------------- */
.ke-related {
  background: var(--ke-bg);
  padding: 60px 30px;
  border-top: 1px solid var(--ke-border);
}

.ke-related__inner {
  max-width: var(--ke-content-max);
  margin: 0 auto;
}

.ke-related__title {
  font-family: var(--ke-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ke-navy);
  margin: 0 0 8px;
  text-align: center;
}

.ke-related__subtitle {
  font-family: var(--ke-font-body);
  font-size: 0.92rem;
  color: var(--ke-text-muted);
  text-align: center;
  margin: 0 0 36px;
}

.ke-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/*
 * Full blog card base styles for related posts.
 * The card CSS normally lives inside the shortcode inline <style> and
 * is NOT available on single post pages, so we define everything here.
 */
.ke-related__grid .custom-blog-card {
  background-color: var(--ke-white);
  border-radius: var(--ke-radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ke-text);
  width: 100% !important;
  margin: 0;
  text-decoration: none;
  transition: transform var(--ke-transition), box-shadow var(--ke-transition);
}

.ke-related__grid .custom-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* Card image */
.ke-related__grid .custom-blog-card .card-image-container {
  position: relative;
  overflow: hidden;
  height: 220px;
  background-color: #f0f0f0;
}

.ke-related__grid .custom-blog-card .card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-in-out;
}

.ke-related__grid .custom-blog-card:hover .card-image-container img {
  transform: scale(1.06);
}

/* Card content area */
.ke-related__grid .custom-blog-card .card-content {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Category badge */
.ke-related__grid .custom-blog-card .card-category-wrapper {
  margin-bottom: 10px;
}

.ke-related__grid .custom-blog-card .card-category {
  display: inline-block;
  background-color: var(--ke-orange-light);
  color: var(--ke-orange);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--ke-font-body);
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background-color var(--ke-transition), color var(--ke-transition);
}

.ke-related__grid .custom-blog-card .card-category:hover {
  background-color: var(--ke-orange);
  color: #fff;
}

/* Card title */
.ke-related__grid .custom-blog-card .card-title {
  font-family: var(--ke-font-heading);
  font-size: 1.15em;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
}

.ke-related__grid .custom-blog-card .card-title a {
  color: var(--ke-navy);
  text-decoration: none;
  transition: color var(--ke-transition);
}

.ke-related__grid .custom-blog-card:hover .card-title a {
  color: var(--ke-orange);
}

/* Card meta */
.ke-related__grid .custom-blog-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--ke-font-body);
  font-size: 0.8em;
  color: var(--ke-text-muted);
  margin-bottom: 14px;
}

.ke-related__grid .custom-blog-card .card-meta .meta-item {
  display: flex;
  align-items: center;
}

.ke-related__grid .custom-blog-card .card-meta .meta-item i {
  margin-right: 6px;
  color: var(--ke-text-muted);
}

/* Card excerpt */
.ke-related__grid .custom-blog-card .card-excerpt {
  font-family: var(--ke-font-body);
  font-size: 0.9em;
  line-height: 1.7;
  color: var(--ke-text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Read more button */
.ke-related__grid .custom-blog-card .read-more-btn {
  display: inline-block;
  background-color: var(--ke-green);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-family: var(--ke-font-heading);
  font-weight: 600;
  font-size: 0.85em;
  transition: background-color var(--ke-transition), transform var(--ke-transition);
  align-self: flex-start;
  text-align: center;
}

.ke-related__grid .custom-blog-card .read-more-btn i {
  margin-left: 8px;
  transition: transform var(--ke-transition);
}

.ke-related__grid .custom-blog-card .read-more-btn:hover {
  background-color: var(--ke-green-dark);
  transform: translateY(-2px);
}

.ke-related__grid .custom-blog-card .read-more-btn:hover i {
  transform: translateX(3px);
}

/* --- Post Navigation -------------------------------------------------- */
.ke-post-nav {
  max-width: var(--ke-content-max);
  margin: 0 auto;
  padding: 40px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ke-post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  background: var(--ke-white);
  border: 1px solid var(--ke-border);
  border-radius: var(--ke-radius);
  text-decoration: none;
  transition: all var(--ke-transition);
}

.ke-post-nav__item:hover {
  border-color: var(--ke-orange);
  box-shadow: var(--ke-shadow);
  transform: translateY(-2px);
}

.ke-post-nav__item--next {
  text-align: right;
}

.ke-post-nav__label {
  font-family: var(--ke-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ke-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ke-post-nav__item--next .ke-post-nav__label {
  justify-content: flex-end;
}

.ke-post-nav__label svg {
  width: 14px;
  height: 14px;
}

.ke-post-nav__title {
  font-family: var(--ke-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ke-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--ke-transition);
}

.ke-post-nav__item:hover .ke-post-nav__title {
  color: var(--ke-orange);
}

/* --- Comments --------------------------------------------------------- */
.ke-comments {
  max-width: var(--ke-content-max);
  margin: 0 auto;
  padding: 40px 30px 60px;
}

.ke-comments .comment-respond {
  background: var(--ke-white);
  border: 1px solid var(--ke-border);
  border-radius: var(--ke-radius);
  padding: 32px;
}

.ke-comments .comment-reply-title {
  font-family: var(--ke-font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ke-navy);
  margin-bottom: 20px;
}

.ke-comments .comment-form label {
  font-family: var(--ke-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ke-text);
  display: block;
  margin-bottom: 6px;
}

.ke-comments .comment-form input[type="text"],
.ke-comments .comment-form input[type="email"],
.ke-comments .comment-form input[type="url"],
.ke-comments .comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ke-border);
  border-radius: var(--ke-radius-sm);
  font-family: var(--ke-font-body);
  font-size: 0.92rem;
  transition: border-color var(--ke-transition), box-shadow var(--ke-transition);
  background: #fafbfc;
}

.ke-comments .comment-form input:focus,
.ke-comments .comment-form textarea:focus {
  outline: none;
  border-color: var(--ke-orange);
  box-shadow: 0 0 0 3px var(--ke-orange-light);
  background: var(--ke-white);
}

.ke-comments .comment-form .submit {
  background: var(--ke-orange);
  color: #fff;
  font-family: var(--ke-font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 28px;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  transition: all var(--ke-transition);
}

.ke-comments .comment-form .submit:hover {
  background: var(--ke-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(236, 82, 33, 0.3);
}

.ke-comments .comment-form p {
  margin-bottom: 16px;
}

/* Comment section link overrides — use brand colors, not blue */
.ke-comments a {
  color: var(--ke-orange);
  text-decoration: none;
  transition: color var(--ke-transition);
}

.ke-comments a:hover {
  color: var(--ke-orange-dark);
  text-decoration: underline;
}

.ke-comments .comment-reply-title small a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ke-text-muted);
}

.ke-comments .comment-reply-title small a:hover {
  color: var(--ke-orange);
}

.ke-comments .logged-in-as a {
  color: var(--ke-orange);
}

.ke-comments .comment-notes a,
.ke-comments .comment-form a {
  color: var(--ke-orange);
}

/* Comment list styling */
.ke-comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.ke-comments .comment-list .comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--ke-border);
}

.ke-comments .comment-list .comment-author {
  font-family: var(--ke-font-heading);
  font-weight: 600;
  color: var(--ke-navy);
}

.ke-comments .comment-list .comment-author a {
  color: var(--ke-navy);
}

.ke-comments .comment-list .comment-author a:hover {
  color: var(--ke-orange);
}

.ke-comments .comment-list .comment-metadata a {
  color: var(--ke-text-muted);
  font-size: 0.82rem;
}

.ke-comments .comment-list .reply a {
  color: var(--ke-orange);
  font-family: var(--ke-font-body);
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- Animations ------------------------------------------------------- */
@keyframes keFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ke-animate-in {
  animation: keFadeInUp 0.6s ease-out both;
}

.ke-hero__content {
  animation: keFadeInUp 0.8s ease-out both;
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1100px) {
  .ke-single-wrap {
    grid-template-columns: 1fr 280px;
    gap: 36px;
  }
}

@media (max-width: 960px) {
  .ke-single-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ke-sidebar {
    position: relative;
    top: auto;
    order: -1;
    margin-bottom: 32px;
  }

  .ke-toc {
    border: 1px solid var(--ke-border);
  }

  .ke-toc__toggle {
    display: flex;
  }

  .ke-toc__list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .ke-toc__list.open {
    max-height: 600px;
  }

  .ke-toc__toggle.open svg {
    transform: rotate(180deg);
  }

  .ke-recent-posts,
  .ke-sidebar-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .ke-hero {
    min-height: 300px;
  }

  .ke-hero__content {
    padding: 40px 20px 36px;
  }

  .ke-hero__title {
    font-size: 1.6rem;
  }

  .ke-author-bar {
    padding: 0 20px;
  }

  .ke-single-wrap {
    padding: 28px 20px 40px;
  }

  .ke-article__content {
    font-size: 1rem;
  }

  .ke-article__content h2 {
    font-size: 1.35rem;
    margin-top: 36px;
  }

  .ke-article__content h3 {
    font-size: 1.1rem;
  }

  .ke-share__buttons {
    gap: 8px;
  }

  .ke-share__btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .ke-share__btn span {
    display: none;
  }

  .ke-related {
    padding: 40px 20px;
  }

  .ke-related__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ke-post-nav {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .ke-post-nav__item--next {
    text-align: left;
  }

  .ke-post-nav__item--next .ke-post-nav__label {
    justify-content: flex-start;
  }

  .ke-comments {
    padding: 28px 20px 40px;
  }
}

@media (max-width: 480px) {
  .ke-hero {
    min-height: 260px;
  }

  .ke-hero__title {
    font-size: 1.4rem;
  }

  .ke-author-bar__inner {
    gap: 12px;
  }

  .ke-author-bar__meta {
    gap: 10px;
    font-size: 0.78rem;
  }

  .ke-article__content table {
    font-size: 0.82rem;
  }

  .ke-article__content table td,
  .ke-article__content table th {
    padding: 10px 12px;
  }
}

/* --- Print ------------------------------------------------------------ */
@media print {
  .ke-progress-bar,
  .ke-sidebar,
  .ke-share,
  .ke-related,
  .ke-post-nav,
  .ke-comments {
    display: none !important;
  }

  .ke-single-wrap {
    grid-template-columns: 1fr;
  }

  .ke-hero {
    min-height: auto;
    padding: 20px;
    background: #fff !important;
  }

  .ke-hero__title {
    color: #000 !important;
    text-shadow: none;
  }
}
