/*
Theme Name: وبلاگ شارژبوک
Theme URI: https://blog.sharjbook.com/
Author: شارژبوک
Author URI: https://sharjbook.com/
Description: قالب راست‌چین وبلاگ شارژبوک بر اساس طراحی سایت اصلی.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: sharjbook-blog
*/

:root {
  --sb-primary: #181d27;
  --sb-secondary: #535862;
  --sb-muted: #717680;
  --sb-green: #128462;
  --sb-green-dark: #10523e;
  --sb-green-soft: #effaf6;
  --sb-green-border: #bfe3d7;
  --sb-blue: #2e90fa;
  --sb-yellow: #f5c542;
  --sb-purple: #7c3aed;
  --sb-border: #e9eaeb;
  --sb-border-soft: #f5f5f5;
  --sb-bg: #ffffff;
  --sb-bg-subtle: #fbfcfc;
  --sb-shadow-main: 0 2px 4px -2px rgba(10, 13, 18, 0.06), 0 4px 6px -1px rgba(10, 13, 18, 0.1);
  --sb-shadow-card: 0 18px 46px rgba(24, 29, 39, 0.07);
  --sb-shadow-green: 0 18px 36px rgba(5, 44, 33, 0.18);
  --sb-radius: 16px;
  --sb-radius-lg: 24px;
  --sb-shell: 1184px;
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--sb-bg);
  color: var(--sb-primary);
  font-family: "Ravi FaNum", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-align: right;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 100000;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--sb-primary);
  color: #fff;
  padding: 0.7rem 1rem;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(var(--sb-shell), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem 0 0.55rem;
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(233, 234, 235, 0.65);
}

.site-nav {
  border: 1px solid var(--sb-border-soft);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--sb-shadow-main);
}

.site-nav__row {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
}

.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.site-logo img {
  width: 147px;
  height: auto;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.desktop-menu,
.menu-fallback {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-menu-wrap {
  min-width: 0;
}

.desktop-menu a,
.menu-fallback a {
  color: #414651;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease;
}

.desktop-menu a:hover,
.desktop-menu .current-menu-item > a,
.desktop-menu .current_page_item > a,
.menu-fallback a:hover,
.menu-fallback .is-active {
  color: var(--sb-green);
}

.site-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

.button,
.wp-block-button__link,
.post-password-form input[type="submit"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.3;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.button--primary,
.wp-block-button__link,
.post-password-form input[type="submit"] {
  background: var(--sb-green);
  color: #fff;
  box-shadow: var(--sb-shadow-green);
}

.button--primary:hover,
.wp-block-button__link:hover,
.post-password-form input[type="submit"]:hover {
  transform: translateY(-2px);
  background: var(--sb-green-dark);
  color: #fff;
}

.button--ghost {
  border-color: #d5d7da;
  background: #f5f5f5;
  color: #717680;
}

.button--ghost:hover {
  border-color: #a4a7ae;
  color: #535862;
}

.button--light {
  border-color: var(--sb-border);
  background: var(--sb-bg-subtle);
  color: var(--sb-primary);
}

.button--light:hover {
  background: #f1f1f1;
}

.site-actions .button {
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

.mobile-menu-button {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sb-primary);
}

.mobile-menu-button img {
  width: 22px;
  height: 22px;
}

.mobile-menu-button__close {
  display: none;
}

.mobile-menu-button[aria-expanded="true"] .mobile-menu-button__open {
  display: none;
}

.mobile-menu-button[aria-expanded="true"] .mobile-menu-button__close {
  display: block;
}

.mobile-panel {
  display: none;
  padding: 0 1rem 1rem;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel__menu {
  overflow: hidden;
  border: 1px solid var(--sb-border);
  border-radius: 16px;
}

.mobile-panel__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sb-border);
  color: #414651;
  padding: 0.72rem 0.85rem;
  font-weight: 600;
}

.mobile-panel__menu a:last-child {
  border-bottom: 0;
}

.mobile-panel__menu img {
  width: 6px;
  height: 11px;
}

.mobile-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.8rem) 0 clamp(1.8rem, 4vw, 3.6rem);
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: auto -12% 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(239, 250, 246, 0), rgba(239, 250, 246, 0.72));
  pointer-events: none;
}

.blog-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--sb-green-border);
  border-radius: 999px;
  background: #fff;
  color: var(--sb-green);
  padding: 0.4rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.blog-hero h1,
.archive-header h1,
.single-hero h1,
.page-hero h1 {
  margin: 0.8rem 0 0;
  color: var(--sb-primary);
  font-size: clamp(2rem, 4.5vw, 3.45rem);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: 0;
}

.blog-hero p,
.archive-header p,
.single-hero__lead,
.page-hero p {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--sb-secondary);
  font-size: 1.04rem;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero-actions .button {
  padding: 0.8rem 1.2rem;
}

.hero-art {
  position: relative;
  min-height: 430px;
  isolation: isolate;
}

.hero-art__panel {
  position: absolute;
  border: 1px solid rgba(233, 234, 235, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(24, 29, 39, 0.1);
  backdrop-filter: blur(10px);
}

.hero-art__panel--main {
  inset: 42px 38px 32px 16px;
  overflow: hidden;
  padding: 1.35rem;
}

.hero-art__panel--main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 15%, rgba(46, 144, 250, 0.12), transparent 25%),
    radial-gradient(circle at 90% 82%, rgba(18, 132, 98, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 250, 0.78));
  z-index: -1;
}

.hero-art__panel--mini-a {
  left: 0;
  top: 74px;
  width: 220px;
  padding: 1rem;
  animation-delay: 250ms;
}

.hero-art__panel--mini-b {
  right: 4px;
  bottom: 74px;
  width: 255px;
  padding: 1rem;
  animation-delay: 500ms;
}

.hero-art__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--sb-muted);
  font-size: 0.85rem;
}

.hero-art__logo-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #e8f6f1;
  color: var(--sb-green);
  font-weight: 900;
}

.hero-art__bars {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-art__bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f0;
}

.hero-art__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sb-green), #6ed6b6);
}

.hero-art__bar:nth-child(2) span {
  width: 64%;
  background: linear-gradient(90deg, var(--sb-blue), #7cc1ff);
}

.hero-art__bar:nth-child(3) span {
  width: 46%;
  background: linear-gradient(90deg, var(--sb-yellow), #ffe08a);
}

.hero-art__post {
  display: grid;
  gap: 0.55rem;
}

.hero-art__post strong {
  color: var(--sb-primary);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-art__post span,
.hero-art__post small {
  color: var(--sb-secondary);
  line-height: 1.8;
}

.hero-art__chip {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #effaf6;
  color: var(--sb-green);
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-art__metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-art__metric-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sb-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 132, 98, 0.11);
}

.hero-art__metric-icon img {
  width: 22px;
  height: 22px;
}

.trust-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  overflow: hidden;
  border: 1px solid #ddefe8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(18, 132, 98, 0.1);
  padding: 1.25rem;
  isolation: isolate;
}

.trust-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 20%, rgba(46, 144, 250, 0.13), transparent 24%),
    radial-gradient(circle at 92% 82%, rgba(18, 132, 98, 0.17), transparent 26%),
    linear-gradient(135deg, rgba(250, 250, 250, 0.9), rgba(255, 255, 255, 0.48));
  z-index: -1;
}

.trust-item {
  position: relative;
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(24, 29, 39, 0.04);
  color: var(--sb-primary);
  font-weight: 700;
  text-align: center;
}

.trust-item::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 48px;
  height: 4px;
  transform: translateX(50%);
  border-radius: 999px 999px 0 0;
  background: var(--trust-color, var(--sb-green));
}

.trust-item__icon {
  position: relative;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sb-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 20px rgba(24, 29, 39, 0.05);
}

.trust-item__icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  background: var(--trust-color, var(--sb-green));
  opacity: 0.12;
}

.trust-item__icon img {
  position: relative;
  width: 22px;
  height: 22px;
}

.section {
  padding: clamp(2.4rem, 5vw, 5rem) 0;
}

.section--soft {
  background: linear-gradient(180deg, #fff, #fbfffd);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  color: var(--sb-primary);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.55;
}

.section-header p {
  max-width: 560px;
  margin: 0.4rem 0 0;
  color: var(--sb-secondary);
  line-height: 2;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sb-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--sb-shadow-card);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--sb-green-border);
  box-shadow: 0 22px 56px rgba(18, 132, 98, 0.14);
}

.post-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(46, 144, 250, 0.18), transparent 28%),
    radial-gradient(circle at 84% 72%, rgba(18, 132, 98, 0.24), transparent 32%),
    linear-gradient(135deg, #f8fffc, #eef8f4);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.post-card__placeholder span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(18, 132, 98, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--sb-green);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(18, 132, 98, 0.12);
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.2rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  color: var(--sb-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.post-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--sb-green-soft);
  color: var(--sb-green);
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.post-card h2,
.post-card h3 {
  margin: 0;
  color: var(--sb-primary);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.75;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
  color: var(--sb-green);
}

.post-card__excerpt {
  flex: 1;
  margin: 0;
  color: var(--sb-secondary);
  font-size: 0.92rem;
  line-height: 2;
}

.read-more {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--sb-green-border);
  border-radius: 999px;
  color: var(--sb-green-dark);
  padding: 0.6rem 0.9rem;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.read-more:hover {
  border-color: var(--sb-green);
  background: var(--sb-green);
  color: #fff;
}

.archive-header,
.page-hero,
.single-hero {
  padding: clamp(2rem, 4vw, 4rem) 0 1.5rem;
}

.archive-header__box,
.page-hero__box {
  overflow: hidden;
  border: 1px solid #dceee9;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 10%, rgba(245, 197, 66, 0.16), transparent 30%),
    linear-gradient(135deg, #effaf6, #fff);
  padding: clamp(1.4rem, 4vw, 2.8rem);
}

.single-hero__inner {
  max-width: 880px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--sb-muted);
  font-size: 0.86rem;
}

.breadcrumb a {
  color: var(--sb-green-dark);
  font-weight: 800;
}

.single-hero .post-meta {
  margin-top: 1rem;
}

.single-cover {
  margin: 1.5rem auto 0;
  max-width: 980px;
  overflow: hidden;
  border: 1px solid var(--sb-border);
  border-radius: 24px;
  box-shadow: var(--sb-shadow-card);
}

.single-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 2rem;
}

.content-layout--single {
  padding: 2rem 0 clamp(3rem, 6vw, 5rem);
}

.entry-content {
  min-width: 0;
  color: #414651;
  font-size: 1.03rem;
  line-height: 2.18;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--sb-primary);
  font-weight: 900;
  line-height: 1.7;
}

.entry-content h2 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.65rem;
}

.entry-content h3 {
  margin: 1.9rem 0 0.65rem;
  font-size: 1.35rem;
}

.entry-content p {
  margin: 1rem 0;
}

.entry-content a {
  color: var(--sb-green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.entry-content ul,
.entry-content ol {
  padding-right: 1.35rem;
}

.entry-content li {
  margin: 0.45rem 0;
}

.entry-content blockquote {
  margin: 1.4rem 0;
  border-right: 4px solid var(--sb-green);
  border-left: 0;
  border-radius: 14px;
  background: #f7fffb;
  color: var(--sb-primary);
  padding: 1rem 1.2rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--sb-border);
  padding: 0.75rem;
  text-align: right;
}

.entry-content th {
  background: var(--sb-green-soft);
  color: var(--sb-primary);
}

.single-aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 1rem;
}

.aside-box,
.single-cta,
.author-box,
.no-results,
.pagination {
  border: 1px solid var(--sb-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--sb-shadow-card);
}

.aside-box {
  padding: 1.2rem;
}

.aside-box h2,
.aside-box h3 {
  margin: 0 0 0.75rem;
  color: var(--sb-primary);
  font-size: 1rem;
  font-weight: 900;
}

.aside-box ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aside-box a {
  color: #414651;
  font-weight: 700;
}

.aside-box a:hover {
  color: var(--sb-green);
}

.single-cta {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  padding: 1.4rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(46, 144, 250, 0.14), transparent 28%),
    linear-gradient(135deg, #effaf6, #fff);
}

.single-cta h2 {
  margin: 0;
  color: var(--sb-primary);
  font-size: 1.35rem;
}

.single-cta p {
  margin: 0.75rem 0 1rem;
  color: var(--sb-secondary);
}

.post-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.post-taxonomies a {
  border: 1px solid var(--sb-border);
  border-radius: 999px;
  color: var(--sb-secondary);
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
}

.author-box img {
  border-radius: 999px;
}

.author-box strong {
  display: block;
  color: var(--sb-primary);
}

.author-box span {
  color: var(--sb-secondary);
  font-size: 0.9rem;
}

.related-posts {
  margin-top: 3rem;
}

.related-posts h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 900;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.9rem;
}

.pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sb-border);
  border-radius: 999px;
  color: #414651;
  font-weight: 800;
  padding: 0 0.75rem;
}

.pagination .current,
.pagination a:hover {
  border-color: var(--sb-green);
  background: var(--sb-green);
  color: #fff;
}

.no-results {
  padding: 1.5rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form label {
  flex: 1;
}

.search-field,
.post-password-form input[type="password"],
.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--sb-border);
  border-radius: 999px;
  background: #fff;
  color: var(--sb-primary);
  padding: 0.75rem 1rem;
  outline: none;
}

.comment-form textarea {
  min-height: 160px;
  border-radius: 18px;
}

.search-field:focus,
.post-password-form input[type="password"]:focus,
.comment-form input:not([type="submit"]):focus,
.comment-form textarea:focus {
  border-color: var(--sb-green);
  box-shadow: 0 0 0 4px rgba(18, 132, 98, 0.12);
}

.site-footer {
  border-top: 1px solid var(--sb-border);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: clamp(2rem, 5vw, 4.5rem) 0 1.8rem;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--sb-primary);
  font-weight: 900;
}

.footer-title::before {
  content: "";
  width: 16px;
  height: 4px;
  border-radius: 999px;
  background: var(--sb-blue);
}

.footer-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a {
  color: #414651;
  font-size: 0.93rem;
}

.footer-menu a:hover {
  color: var(--sb-green);
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand img {
  width: 147px;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  color: var(--sb-secondary);
  line-height: 2;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.socials a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sb-border);
  border-radius: 999px;
  background: #fff;
}

.socials a:hover {
  border-color: var(--sb-green-border);
  box-shadow: 0 12px 24px rgba(18, 132, 98, 0.12);
}

.socials img {
  width: 19px;
  height: 19px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.download-buttons a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--sb-shadow-main);
}

.download-buttons img {
  width: 22px;
  height: 22px;
}

.copyright {
  border-top: 1px solid var(--sb-border);
  color: var(--sb-secondary);
  padding: 1rem 0 1.5rem;
  text-align: center;
  font-size: 0.88rem;
}

@keyframes sb-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-art__panel {
  animation: sb-float 7s ease-in-out infinite;
}

.hero-art__panel--mini-a {
  animation-duration: 7.4s;
}

.hero-art__panel--mini-b {
  animation-duration: 8s;
}

@media (max-width: 1100px) {
  .desktop-menu {
    gap: 0.8rem;
  }

  .desktop-menu a {
    font-size: 0.92rem;
  }

  .site-actions .button {
    padding-inline: 0.75rem;
    font-size: 0.84rem;
  }

  .blog-hero__grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .single-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    padding: 0;
  }

  .site-nav {
    width: 100%;
    border-radius: 0;
    border-inline: 0;
  }

  .site-nav__row {
    min-height: 80px;
    gap: 0.45rem;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .site-logo img {
    width: 132px;
  }

  .desktop-menu-wrap,
  .desktop-menu,
  .menu-fallback {
    display: none;
  }

  .site-actions {
    margin-right: auto;
  }

  .site-actions .button {
    min-height: 42px;
    max-width: 100px;
    padding: 0.5rem 0.62rem;
    font-size: 0.74rem;
    line-height: 1.45;
    white-space: normal;
  }

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

  .blog-hero__grid {
    gap: 1rem;
  }

  .blog-hero h1,
  .archive-header h1,
  .single-hero h1,
  .page-hero h1 {
    font-size: 1.65rem;
    text-align: center;
  }

  .blog-hero p,
  .archive-header p,
  .single-hero__lead,
  .page-hero p {
    text-align: center;
    font-size: 0.95rem;
  }

  .blog-hero__copy {
    display: grid;
    justify-items: center;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .hero-art {
    min-height: 320px;
  }

  .hero-art__panel--main {
    inset: 16px 20px 24px;
  }

  .hero-art__panel--mini-a,
  .hero-art__panel--mini-b {
    display: none;
  }

  .trust-strip,
  .posts-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    min-height: 82px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: right;
  }

  .trust-item::after {
    right: 1rem;
    bottom: 0;
    transform: none;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .footer-brand {
    justify-items: start;
    text-align: right;
  }

  .socials {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, var(--sb-shell));
  }

  .site-nav__row {
    padding-inline: 0.75rem;
  }

  .site-logo img {
    width: 108px;
  }

  .site-actions {
    gap: 0.3rem;
  }

  .site-actions .button {
    max-width: 92px;
    min-height: 40px;
    padding: 0.42rem 0.48rem;
  }

  .mobile-menu-button {
    flex-basis: 36px;
    width: 36px;
  }

  .mobile-panel__actions,
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 270px;
  }

  .post-card__body,
  .single-cta,
  .aside-box {
    padding: 1rem;
  }

  .entry-content {
    font-size: 0.98rem;
  }

  .footer-menu {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Sharjbook editorial layout based on the supplied blog mockups. */
.site-header {
  padding-top: 1.15rem;
}

.site-nav {
  width: min(1120px, calc(100% - 72px));
}

.site-nav__row {
  min-height: 54px;
  padding: 0.45rem 0.9rem;
}

.site-logo img {
  width: 123px;
}

.desktop-menu,
.menu-fallback {
  gap: clamp(1rem, 2.7vw, 2.4rem);
}

.desktop-menu a,
.menu-fallback a {
  font-size: 0.88rem;
  color: #303642;
}

.site-actions .button {
  min-height: 40px;
  padding: 0.55rem 1.05rem;
  font-size: 0.86rem;
}

.blog-list-page {
  padding: 5rem 0 6rem;
  background: #fff;
}

.blog-list-shell {
  width: min(1068px, calc(100% - 48px));
  margin-inline: auto;
}

.blog-list-head {
  display: grid;
  justify-items: center;
  margin-bottom: 4.2rem;
  text-align: center;
}

.blog-list-head h1 {
  margin: 0;
  color: #181d27;
  font-size: clamp(2.1rem, 4vw, 3.05rem);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0;
}

.blog-list-head p {
  margin: 1.1rem 0 0;
  color: #717680;
  font-size: 1rem;
  line-height: 2;
}

.blog-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 2.35rem;
  border: 1px solid #e9eaeb;
  border-radius: 999px;
  background: #f9fafb;
  padding: 0.28rem;
  scrollbar-width: none;
}

.blog-filter::-webkit-scrollbar {
  display: none;
}

.blog-filter a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #697586;
  padding: 0.35rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.blog-filter a:hover,
.blog-filter .is-active {
  border: 1px solid #95d8c5;
  background: #dff4ed;
  color: #0f7658;
}

.featured-post {
  margin-bottom: 3.5rem;
  text-align: right;
}

.featured-post__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1068 / 544;
  border-radius: 16px;
  background: #f3f6f7;
}

.featured-post__image img,
.post-card__media img,
.sidebar-post__image img,
.single-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 190px;
  place-items: center;
  background:
    radial-gradient(circle at 16% 22%, rgba(46, 144, 250, 0.12), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(18, 132, 98, 0.18), transparent 34%),
    linear-gradient(135deg, #fbfffd, #eef8f4);
}

.post-image-placeholder span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  color: #128462;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(18, 132, 98, 0.12);
}

.featured-post__meta,
.post-card__date {
  color: #128462;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.9;
}

.featured-post__meta {
  margin-top: 1rem;
}

.featured-post h2 {
  margin: 0.2rem 0 0;
  color: #202733;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.7;
}

.featured-post h2 a:hover,
.post-card h3 a:hover,
.sidebar-post h3 a:hover {
  color: #128462;
}

.featured-post p {
  margin: 0.1rem 0 0.65rem;
  color: #8a94a6;
  font-size: 0.94rem;
  line-height: 2;
}

.category-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfe3d7;
  border-radius: 999px;
  background: #effaf6;
  color: #128462;
  padding: 0.18rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.category-chip:nth-of-type(3n + 1) {
  border-color: #f7d6a7;
  background: #fff7ed;
  color: #e08120;
}

.category-chip:nth-of-type(3n + 2) {
  border-color: #cbdcff;
  background: #eff6ff;
  color: #2e70d1;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 1.8rem;
}

.post-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: right;
}

.post-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.post-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 338 / 214;
  border-radius: 12px;
  background: #f3f6f7;
}

.post-card__body {
  display: grid;
  gap: 0.28rem;
  padding: 0.65rem 0 0;
}

.post-card h3 {
  margin: 0;
  color: #202733;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.65;
}

.post-card .category-chip {
  margin-top: 0.35rem;
}

.pagination {
  margin-top: 4.2rem;
  border: 0;
  border-top: 1px solid #e9eaeb;
  border-radius: 0;
  box-shadow: none;
  padding-top: 1.65rem;
}

.pagination .page-numbers {
  min-width: 34px;
  height: 34px;
  border: 0;
  color: #9aa3b2;
  font-size: 0.86rem;
}

.pagination .current,
.pagination a:hover {
  background: #f8fafc;
  color: #181d27;
}

.single-hero {
  padding: 0;
}

.single-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  direction: ltr;
  align-items: stretch;
  min-height: 365px;
  margin-top: 0.2rem;
}

.single-hero-media {
  overflow: hidden;
  background: #f3f6f7;
}

.single-hero-copy {
  display: flex;
  direction: rtl;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(2rem, 6vw, 6.8rem) 3rem 2rem;
  text-align: right;
}

.single-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #128462;
  font-size: 0.82rem;
  font-weight: 700;
}

.single-hero-copy h1 {
  margin: 1rem 0 0;
  color: #202733;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 900;
  line-height: 1.55;
}

.single-hero-copy p {
  max-width: 580px;
  margin: 1rem 0 0;
  color: #535862;
  line-height: 2.05;
}

.single-layout-wrap {
  display: grid;
  grid-template-columns: 230px minmax(0, 620px);
  direction: ltr;
  justify-content: center;
  gap: 3.4rem;
  width: min(980px, calc(100% - 48px));
  margin: 4rem auto 7rem;
}

.related-sidebar,
.single-content-column {
  direction: rtl;
}

.related-sidebar {
  display: grid;
  align-content: start;
  gap: 1.25rem;
}

.related-sidebar h2 {
  margin: 0 0 0.4rem;
  color: #202733;
  font-size: 1rem;
  font-weight: 800;
}

.sidebar-post {
  display: grid;
  gap: 0.5rem;
}

.sidebar-post__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 216 / 128;
  border-radius: 8px;
  background: #f3f6f7;
}

.sidebar-post h3 {
  margin: 0;
  color: #202733;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.65;
}

.sidebar-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: #128462;
  font-size: 0.74rem;
  font-weight: 700;
}

.sidebar-post .category-chip {
  min-height: 22px;
  padding-inline: 0.5rem;
  font-size: 0.7rem;
}

.toc-box {
  position: relative;
  margin-bottom: 1.8rem;
  border: 1px solid #e9eaeb;
  border-radius: 10px;
  background: #fff;
  padding: 1rem 1.2rem;
}

.toc-box::before {
  content: "-";
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #9aa3b2;
  border-radius: 999px;
  color: #697586;
  font-weight: 900;
  line-height: 1;
}

.toc-box__title {
  margin-bottom: 0.8rem;
  color: #202733;
  font-weight: 900;
  text-align: center;
}

.toc-box ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0 1rem 0 0;
}

.toc-box li {
  color: #202733;
  font-size: 0.9rem;
  line-height: 1.9;
}

.toc-box a:hover {
  color: #128462;
}

.single-entry {
  color: #404653;
  font-size: 0.98rem;
  line-height: 2.25;
  text-align: right;
}

.single-entry h2 {
  margin: 2.1rem 0 0.7rem;
  color: #202733;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.8;
  text-align: center;
}

.single-entry h3 {
  color: #202733;
  font-size: 1.16rem;
  font-weight: 900;
  text-align: center;
}

.single-entry img {
  overflow: hidden;
  border-radius: 10px;
}

.single-entry blockquote {
  margin: 2rem 0;
  border-right: 4px solid #2e90fa;
  border-radius: 0;
  background: transparent;
  color: #202733;
  padding: 0.5rem 1.25rem 0.5rem 0;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 2.1;
}

.comments-area {
  margin-top: 3rem;
  border-top: 1px solid #e9eaeb;
  padding-top: 1.6rem;
}

.comments-title,
.comment-reply-title {
  margin: 0 0 1rem;
  color: #202733;
  font-size: 1.2rem;
  font-weight: 900;
}

.comment-form {
  display: grid;
  gap: 0.8rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.3rem;
  color: #535862;
  font-size: 0.88rem;
  font-weight: 700;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  border-radius: 7px;
}

.comment-form .form-submit {
  margin: 0;
}

.comment-form .submit {
  width: fit-content;
  min-height: 40px;
  padding-inline: 1rem;
}

.comment-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.comment-list .comment-body {
  border: 1px solid #e9eaeb;
  border-radius: 8px;
  padding: 1rem;
  color: #535862;
}

.comment-list .comment-author {
  color: #202733;
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid #eef0f3;
  background: #fff;
}

.footer-shell {
  width: min(1120px, calc(100% - 72px));
  margin-inline: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr) minmax(160px, 0.45fr);
  gap: 3rem;
  align-items: start;
  padding: 5rem 0 3rem;
}

.footer-brand {
  justify-items: start;
  text-align: right;
}

.footer-brand img {
  width: 133px;
}

.footer-brand p {
  max-width: 370px;
  margin-top: 1rem;
  color: #697586;
  font-size: 0.95rem;
  line-height: 2;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.45rem;
  margin-top: 2rem;
}

.footer-menu a {
  color: #4b5565;
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-title {
  margin-bottom: 1rem;
  color: #202733;
  font-size: 0.95rem;
  font-weight: 800;
}

.footer-title::before {
  display: none;
}

.download-buttons {
  display: grid;
  gap: 0.65rem;
}

.download-buttons a {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 44px;
  align-items: center;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
}

.download-buttons span {
  color: #9aa3b2;
  font-size: 0.68rem;
}

.download-buttons strong {
  color: #202733;
  font-size: 0.95rem;
}

.symbol-card {
  display: grid;
  width: 108px;
  min-height: 108px;
  place-items: center;
  border: 1px solid #e9eaeb;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--sb-shadow-main);
}

.symbol-card img {
  max-width: 82px;
  max-height: 82px;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #e9eaeb;
  padding: 1.4rem 0 2rem;
}

.footer-bottom p {
  margin: 0;
  color: #8a94a6;
  font-size: 0.86rem;
}

.socials {
  justify-content: flex-start;
}

.socials a {
  width: 32px;
  height: 32px;
}

.socials img {
  width: 15px;
  height: 15px;
}

@media (max-width: 1100px) {
  .single-layout-wrap {
    grid-template-columns: 1fr;
  }

  .related-sidebar {
    order: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .related-sidebar h2 {
    grid-column: 1 / -1;
  }

  .single-content-column {
    order: 1;
  }
}

@media (max-width: 920px) {
  .site-header {
    padding-top: 0;
  }

  .site-nav {
    width: 100%;
  }

  .blog-list-page {
    padding: 3rem 0 4rem;
  }

  .blog-list-head {
    margin-bottom: 2.4rem;
  }

  .blog-filter {
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .blog-card-grid,
  .related-sidebar {
    grid-template-columns: 1fr;
  }

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

  .single-hero-media {
    min-height: 270px;
  }

  .single-hero-copy {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .single-hero-meta {
    justify-content: center;
  }

  .single-layout-wrap {
    width: min(100% - 32px, 680px);
    margin-top: 2.5rem;
    gap: 2rem;
  }

  .footer-shell {
    width: min(100% - 32px, 1120px);
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-actions .button {
    min-width: 106px;
    max-width: none;
    white-space: nowrap;
  }

  .blog-list-shell {
    width: min(100% - 28px, 1068px);
  }

  .blog-list-head h1 {
    font-size: 1.65rem;
  }

  .featured-post h2 {
    font-size: 1.3rem;
  }

  .post-card h3 {
    font-size: 1.08rem;
  }

  .footer-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Exact Sharjbook landing footer port. */
.sb-footer {
  direction: rtl;
  border-top: 1px solid #e9eaeb;
  background: #fff;
}

.sb-footer__inner {
  width: min(1184px, calc(100% - 24px));
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  padding: 5rem 0 1.5rem;
}

.sb-footer__desktop-col {
  display: flex;
  width: 33.333%;
  flex-direction: column;
}

.sb-footer__quick {
  gap: 1rem;
}

.sb-footer__brand {
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: center;
}

.sb-footer__brand img {
  width: 147px;
}

.sb-footer__brand p {
  max-width: 360px;
  margin: 0;
  color: #181d27;
  font-size: 1rem;
  line-height: 1.9;
}

.sb-footer__meta {
  justify-content: center;
  gap: 1.5rem;
}

.sb-footer__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sb-footer__heading span {
  height: 4px;
  border-right: 16px solid #2e90fa;
  border-radius: 999px;
}

.sb-footer__heading h3,
.sb-footer-mobile-card h3 {
  margin: 0;
  color: #181d27;
  font-size: 0.8rem;
  font-weight: 800;
}

.sb-footer-menu {
  display: flex;
  justify-content: space-between;
  gap: 3.5rem;
  padding-right: 1.5rem;
}

.sb-footer-menu div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  white-space: nowrap;
}

.sb-footer-menu a {
  color: #181d27;
  font-size: 0.875rem;
  line-height: 1.5;
}

.sb-footer-menu a:hover {
  color: #128462;
}

.sb-footer-socials {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.sb-footer-socials a,
.sb-footer-mobile-card__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9eaeb;
  border-radius: 999px;
  background: #fff;
  padding: 0.5rem;
}

.sb-footer-socials img,
.sb-footer-socials svg,
.sb-footer-mobile-card__socials img,
.sb-footer-mobile-card__socials svg {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
}

.sb-footer__copyright-line {
  width: 100%;
  max-width: 360px;
  height: 1px;
  margin-bottom: 2.5rem;
  background: linear-gradient(90deg, #515554, #fff, #464d4b);
  text-align: center;
}

.sb-footer__copyright-line p {
  margin: 1rem 0 0;
  color: #535862;
  font-size: 0.875rem;
  line-height: 1.7;
}

.sb-footer-badges {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.sb-footer-badges button,
.sb-footer-badges a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.sb-footer-badges img {
  max-width: 92px;
  max-height: 92px;
  object-fit: contain;
}

.sb-footer-badges button:nth-child(2) img {
  width: 120px;
  max-width: 120px;
}

.sb-footer-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  padding-right: 1.5rem;
}

.sb-footer-downloads a,
.sb-footer-mobile-download {
  display: flex;
  width: 96px;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #181d27;
  padding: 0.5rem 0.25rem;
  font-size: 0.875rem;
  box-shadow:
    0 2px 4px -2px rgba(10, 13, 18, 0.06),
    0 4px 6px -1px rgba(10, 13, 18, 0.1);
}

.sb-footer-downloads img,
.sb-footer-mobile-download img {
  width: 24px;
  max-width: 24px;
  height: 24px;
  max-height: 24px;
}

.sb-footer__mobile {
  display: none;
}

.sb-footer-mobile-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e9eaeb;
  border-radius: 10px;
  box-shadow:
    0 2px 4px -2px rgba(10, 13, 18, 0.06),
    0 4px 6px -1px rgba(10, 13, 18, 0.1);
}

.sb-footer-mobile-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
}

.sb-footer-mobile-card__top > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sb-footer-mobile-badge {
  width: 80px;
  min-height: 56px;
  object-fit: contain;
}

.sb-footer-mobile-download {
  width: 153px;
  border-radius: 7px;
  padding: 0.5rem 0.75rem;
}

.sb-footer-mobile-card__socials {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  border-top: 2px solid #e9eaeb;
  padding: 1rem 0.75rem;
}

.sb-footer-mobile-card__socials > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #181d27;
  font-size: 0.78rem;
}

.sb-footer-mobile-copyright {
  margin: 0 auto 2.5rem;
  color: #535862;
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 1023px) {
  .sb-footer-badges {
    display: none;
  }
}

@media (max-width: 767px) {
  .sb-footer__inner {
    width: min(100% - 24px, 1184px);
    display: block;
    padding: 1.5rem 0 0;
  }

  .sb-footer__desktop-col {
    display: none;
  }

  .sb-footer__mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .sb-footer__brand--mobile {
    align-items: flex-start;
    gap: 1rem;
    text-align: right;
  }

  .sb-footer__brand--mobile p {
    max-width: none;
  }

  .sb-footer-menu--mobile {
    width: 100%;
    padding-right: 0;
  }
}

/* Ravi typography refinements. */
body,
button,
input,
textarea,
select {
  font-family: "Ravi FaNum", Tahoma, Arial, sans-serif;
  font-weight: 400;
}

.blog-list-head h1,
.blog-hero h1,
.archive-header h1,
.page-hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.55;
}

.single-hero-copy h1,
.single-hero h1 {
  font-size: clamp(1.85rem, 2.7vw, 2.35rem);
  font-weight: 700;
  line-height: 1.65;
}

.featured-post h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 700;
  line-height: 1.75;
}

.post-card h2,
.post-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.75;
}

.section-header h2,
.related-posts h2,
.single-entry h2,
.entry-content h2,
.comments-title,
.comment-reply-title {
  font-weight: 700;
}

.single-entry h2,
.entry-content h2 {
  font-size: 1.28rem;
  line-height: 1.85;
}

.single-entry h3,
.entry-content h3,
.aside-box h2,
.aside-box h3,
.related-sidebar h2,
.sidebar-post h3,
.toc-box__title {
  font-weight: 600;
}

.single-entry h3,
.entry-content h3 {
  font-size: 1.12rem;
  line-height: 1.85;
}

@media (max-width: 767px) {
  .blog-list-head h1,
  .blog-hero h1,
  .archive-header h1,
  .page-hero h1 {
    font-size: 1.65rem;
    line-height: 1.7;
  }

  .single-hero-copy h1,
  .single-hero h1 {
    font-size: 1.55rem;
    line-height: 1.75;
  }

  .featured-post h2 {
    font-size: 1.24rem;
  }

  .post-card h2,
  .post-card h3 {
    font-size: 1.04rem;
  }
}

/* Single post polish: breadcrumbs, accordion TOC, and comments. */
.single-post-page h1,
.single-post-page h2,
.single-post-page h3,
.single-post-page h4,
.single-post-page h5,
.single-post-page h6,
.single-post-page .comments-title,
.single-post-page .comment-reply-title {
  text-align: right;
}

.single-post-page .single-hero-copy,
.single-post-page .single-hero-copy p {
  text-align: right;
}

.single-breadcrumbs {
  display: flex;
  max-width: 580px;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: #717680;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.9;
}

.single-breadcrumbs a {
  color: #128462;
  font-weight: 700;
}

.single-breadcrumbs span[aria-current="page"] {
  overflow: hidden;
  max-width: 260px;
  color: #535862;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.single-breadcrumbs span[aria-hidden="true"] {
  color: #c5cad3;
}

.toc-box {
  overflow: hidden;
  padding: 0;
}

.toc-box::before {
  display: none;
}

.toc-box__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
}

.toc-box__summary::-webkit-details-marker {
  display: none;
}

.toc-box__title {
  margin: 0;
  color: #202733;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: right;
}

.toc-box__icon {
  display: grid;
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-inline-start: auto;
  place-items: center;
  border: 1px solid #c5cad3;
  border-radius: 999px;
  color: #697586;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.toc-box__icon::before {
  content: "+";
  transform: translateY(-1px);
}

.toc-box[open] .toc-box__icon::before {
  content: "-";
  transform: none;
}

.toc-box__content {
  border-top: 1px solid #f1f3f5;
  padding: 0.85rem 1.2rem 1.1rem;
}

.toc-box__content ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0 1.1rem 0 0;
}

.toc-box__content li {
  color: #202733;
  font-size: 0.9rem;
  line-height: 1.9;
}

.toc-box__content a:hover {
  color: #128462;
}

.comments-area {
  margin-top: 3.5rem;
  border-top: 1px solid #e9eaeb;
  padding-top: 1.5rem;
}

.comments-card,
.comments-area > .comments-title + .comment-list {
  width: 100%;
}

.comments-card {
  margin-bottom: 2.5rem;
}

.comments-title,
.comment-reply-title {
  margin: 0 0 1rem;
  color: #202733;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.8;
}

.comment-form--designed {
  display: grid;
  gap: 0.85rem;
  border: 1px solid #e9eaeb;
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
}

.comment-form--designed p {
  margin: 0;
}

.comment-form-author {
  order: 1;
}

.comment-form-email {
  order: 2;
}

.comment-form-comment {
  order: 3;
}

.comment-form-cookies-consent {
  order: 4;
}

.comment-form-actions {
  order: 5;
}

.comment-form--designed label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  color: #535862;
  font-size: 0.86rem;
  font-weight: 700;
}

.comment-form--designed label::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #128462;
}

.comment-form--designed input:not([type="submit"]):not([type="checkbox"]),
.comment-form--designed textarea {
  width: 100%;
  border: 1px solid #e1e5ea;
  border-radius: 7px;
  background: #fff;
  color: #202733;
  padding: 0.8rem 0.9rem;
  font-size: 0.92rem;
}

.comment-form--designed textarea {
  min-height: 132px;
  resize: vertical;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #697586;
  font-size: 0.82rem;
}

.comment-form--designed .comment-form-cookies-consent input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  min-height: 16px;
  height: 16px;
  border-radius: 4px;
  padding: 0;
  accent-color: #128462;
}

.comment-form-cookies-consent label {
  margin: 0;
}

.comment-form-cookies-consent label::after {
  display: none;
}

.comment-form-actions {
  display: flex;
  justify-content: flex-start;
  margin: 0;
}

.comment-form-actions .submit {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #128462;
  color: #fff;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.comment-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-list .comment-body {
  border: 1px solid #e9eaeb;
  border-radius: 8px;
  background: #fff;
  color: #535862;
  padding: 1rem 1.1rem;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: #717680;
  font-size: 0.82rem;
}

.comment-author-name {
  color: #202733;
  font-weight: 700;
}

.comment-content {
  color: #535862;
  line-height: 2;
}

.comment-awaiting-moderation {
  width: fit-content;
  margin: 0 0 0.75rem;
  border: 1px solid #f7d6a7;
  border-radius: 999px;
  background: #fff7ed;
  color: #e08120;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.comment-content p {
  margin: 0;
}

.comment-reply-link {
  display: inline-flex;
  margin-top: 0.85rem;
  color: #128462;
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 767px) {
  .single-post-page .single-hero-copy,
  .single-post-page .single-hero-copy h1,
  .single-post-page .single-hero-copy p {
    text-align: right;
  }

  .single-post-page .single-hero-meta {
    justify-content: flex-start;
  }

  .single-breadcrumbs {
    max-width: none;
    justify-content: flex-start;
  }

  .single-breadcrumbs span[aria-current="page"] {
    max-width: 190px;
  }

  .comment-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
