:root {
  --background: #ffffff;
  --foreground: #111827;
  --secondary: #374151;
  --muted: #f4f6f8;
  --muted-foreground: #4B5563;
  --card: #ffffff;
  --border: #e5e7eb;
  --primary: #3867FF;
  --primary-dark: #2F4088;
  --beige: #fbf3e4;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--secondary);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

/* ===== GLOBAL TYPOGRAPHY ===== */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--foreground);
  margin-top: 0;
  letter-spacing: -0.015em;
}

h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
}

h2 {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 800;
}

h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

h4 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

p {
  margin-top: 0;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.75;
}

ul,
ol {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.75;
}

li {
  margin-bottom: 8px;
}

strong,
b {
  font-weight: 800;
  color: var(--foreground);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

/* ===== HEADER ===== */

.site-header {
  z-index: 50;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.site-header--sticky {
  position: sticky;
  top: 0;
}

.site-header--relative {
  position: relative;
}

.disclosure-bar {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.disclosure-inner {
  width: 100%;
  padding: 8px 16px;
  text-align: center;
  color: var(--foreground);
  font-size: 13px;
  line-height: 1.35;
}

.disclosure-inner a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-shell {
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(10px);
}

.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
}

.site-logo {
  display: none;
}

.site-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.primary-menu,
.footer-menu,
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-menu a {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  transition: color .2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: none;
}

.menu-toggle {
  border: 0;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  border-radius: 10px;
  min-width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle:hover {
  color: var(--foreground);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 12px 16px 18px;
  background: var(--background);
}

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

.mobile-menu-list a {
  display: block;
  padding: 10px 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
}

.mobile-menu-list a:hover {
  color: var(--foreground);
}

/* ===== MAIN LAYOUT ===== */

.site-main {
  padding: 40px 0 96px;
}

.home-main {
  padding-top: 0;
}

.featured-section {
  padding: 40px 0 16px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.featured-card {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--muted);
  box-shadow: var(--shadow-sm);
}

.featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.featured-card:hover img {
  transform: scale(1.05);
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.34), rgba(0,0,0,.05));
}

.featured-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
}

.featured-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 26px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-section {
  padding-top: 16px;
}

.layout-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .layout-sidebar-grid {
    grid-template-columns: minmax(0, 780px) 360px;
    justify-content: center;
    align-items: start;
    gap: 36px;
  }
}

.content-column {
  min-width: 0;
}

.sidebar-column {
  display: none;
}

@media (min-width: 1024px) {
  .sidebar-column {
    display: block;
  }
}

.sticky-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.home-main .sticky-sidebar {
  top: 96px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-heading-row h2,
.archive-heading h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.view-all-link,
.read-more-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* ===== CARDS ===== */

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.review-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--muted);
}

.review-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.review-card:hover .review-card-image img {
  transform: scale(1.05);
}

.review-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 242px;
}

.review-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.review-card h3 a:hover {
  color: var(--primary);
}

.review-card p {
  margin: 0 0 20px;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card .read-more-link {
  margin-top: auto;
}

/* ===== SIDEBAR ===== */

.popular-box,
.newsletter-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.popular-heading {
  display: flex;
  align-items: center;
  gap: 0;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.popular-heading h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item {
  display: flex;
  gap: 12px;
  padding: 8px;
  margin: 0 -8px;
  border-radius: 10px;
  transition: background .2s ease;
}

.popular-item:hover {
  background: var(--muted);
}

.popular-thumb {
  position: relative;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--muted);
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-thumb span {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-bottom-right-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.popular-copy {
  min-width: 0;
  padding-top: 2px;
}

.popular-copy strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 6px;
  font-weight: 650;
}

.popular-copy em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--secondary);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.newsletter-box {
  text-align: center;
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
}

.newsletter-box h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.newsletter-box p {
  margin: 0 auto 22px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.65;
}

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

.newsletter-box input,
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--foreground);
  padding: 11px 14px;
  outline: none;
}

.newsletter-box button,
.submit-button {
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.newsletter-box button:hover,
.submit-button:hover {
  background: var(--primary-dark);
}

/* ===== SINGLE / POST DEFAULTS ===== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--foreground);
}

.breadcrumb span:last-child {
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.single-header h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  color: var(--secondary);
  font-size: 15px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.share-email {
  background: #475569;
}

.share-facebook {
  background: #1877f2;
  font-size: 17px;
}

.share-x {
  background: #1d9bf0;
}

.share-linkedin {
  background: #0a66c2;
  font-size: 13px;
}

.share-pinterest {
  background: #e60023;
}

.share-copy {
  background: var(--foreground);
  color: var(--background);
  font-size: 17px;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--secondary);
  font-size: 14px;
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.single-featured-image {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--muted);
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.single-featured-image img {
  width: 100%;
  height: auto;
}

.post-content {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 64px;
}

.post-content > * {
  max-width: none;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--foreground);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 1.6em 0 .65em;
}

.post-content h2 {
  font-size: 26px;
  font-weight: 800;
}

.post-content h3 {
  font-size: 20px;
  font-weight: 800;
}

.post-content h4 {
  font-size: 18px;
  font-weight: 800;
}

.post-content p {
  margin: 0 0 18px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.75;
}

.post-content a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content ul,
.post-content ol {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 18px;
  margin-left: 0;
  color: var(--foreground);
}

.post-content strong {
  font-weight: 800;
  color: var(--foreground);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 20px 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 15px;
  line-height: 1.5;
}

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

.post-content th {
  background: #26345f;
  color: #fff;
  font-weight: 800;
}

/* ===== AUTHOR / COMMENTS ===== */

.author-box {
  text-align: center;
  background: var(--beige);
  border: 1px solid color-mix(in srgb, var(--primary) 36%, var(--border));
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.author-box h3 {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.author-avatar,
.author-avatar-fallback {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  margin: 0 auto 16px;
}

.author-avatar {
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
}

.author-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

.author-box h4 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.author-box p {
  margin: 0 auto;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
}

.comments-section {
  margin-bottom: 64px;
}

.comments-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.comments-title-row h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
}

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

.comment-list li {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--foreground);
}

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

.comment-meta {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 6px 0 10px;
}

.comment-reply-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 16px;
}

.comment-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--foreground);
}

.comment-form p {
  margin: 0 0 16px;
}

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

/* ===== ARCHIVE / PAGE ===== */

.archive-main,
.page-main {
  padding-top: 48px;
}

.archive-heading {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.narrow-container {
  max-width: 900px;
}

.page-article h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.2;
  font-weight: 800;
}

.pagination-wrap {
  margin-top: 36px;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-numbers {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--secondary);
}

.page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.muted-text {
  color: var(--secondary);
}

/* ===== FOOTER ===== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 40px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-description {
  margin: 14px 0 0;
  max-width: 460px;
  color: var(--secondary);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}

.footer-menu a {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
}

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.65;
}

.footer-bottom p {
  margin: 0;
}

/* ===== REFERRAL CTA LEGACY ===== */

.revifyreview-referral-cta {
  margin: -12px 0 36px;
}

.revifyreview-referral-cta-inner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.revifyreview-referral-cta-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.revifyreview-referral-cta-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
}

.revifyreview-referral-cta-text {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
}

.revifyreview-referral-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  background: #4254b8;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(66, 84, 184, 0.18);
  transition: 0.2s ease;
}

.revifyreview-referral-cta-button:hover {
  background: #3748a8;
  color: #ffffff;
}

/* ===== RESPONSIVE ===== */

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

  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-main {
    padding-top: 32px;
  }

  .featured-section {
    padding-top: 32px;
  }

  .featured-card {
    min-height: 250px;
  }

  .review-card-body {
    min-height: 0;
  }

  .single-header h1 {
    margin-bottom: 22px;
  }

  .post-content {
    font-size: 15px;
    line-height: 1.75;
  }

  .post-content h2 {
    font-size: 22px;
  }

  .post-content h3 {
    font-size: 19px;
  }

  .post-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .revifyreview-referral-cta-inner {
    padding: 22px 20px;
  }

  .revifyreview-referral-cta-title {
    font-size: 20px;
  }
}