/*
Theme Name: AradRich Theme
Theme URI: https://aradrich.com
Author: Javid Mirzaei
Author URI: https://javidmirzaei.com
Description: A custom SEO-focused theme for AradRich, designed for branding and business insights.
Version: 1.0.7
Text Domain: aradrich
*/

:root {
  /* Palette: Royal Business (Navy & Gold) */
  --color-primary: #0f2c59; /* Deep Navy */
  --color-primary-light: #e6f0fa; /* Very Light Blue bg */
  --color-secondary: #c5a059; /* Elegant Gold */
  --color-secondary-dark: #b08d45;

  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fb; /* Light Grayish Blue */

  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;

  --color-text-main: #1e293b; /* Slate 800 */
  --color-text-muted: #64748b; /* Slate 500 */
  --color-text-light: #94a3b8; /* Slate 400 */

  --radius-lg: 16px;
  --radius-md: 8px;
  --radius-sm: 4px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px rgba(15, 44, 89, 0.06);
  --shadow-card-hover: 0 10px 30px rgba(15, 44, 89, 0.12);

  --container-width: 1140px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent horizontal scroll globally */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.header-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: -1;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  color: var(--color-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(15, 44, 89, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* --- Navigation --- */
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover {
  color: var(--color-primary);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-main);
  cursor: pointer;
  padding: 0.5rem;
  box-shadow: var(--shadow-card);
  line-height: 1;
  width: 44px;
  height: 44px;
}

.mobile-toggle .line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

header.nav-open .mobile-toggle .line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

header.nav-open .mobile-toggle .line:nth-child(2) {
  opacity: 0;
}

header.nav-open .mobile-toggle .line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-close {
  display: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-main);
  cursor: pointer;
  padding: 0.5rem;
  box-shadow: var(--shadow-card);
  line-height: 1;
  width: 44px;
  height: 44px;
}

.mobile-toggle .line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

header.nav-open .mobile-toggle .line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

header.nav-open .mobile-toggle .line:nth-child(2) {
  opacity: 0;
}

header.nav-open .mobile-toggle .line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-close {
  display: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.25);
}

.btn-primary:hover {
  background: #163a72;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 44, 89, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* --- Hero Section --- */
.hero {
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

/* Abstract Background for Hero */
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(240, 246, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  z-index: -1;
  transform: rotate(-15deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: var(--color-primary-light);
  border-radius: 50px;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge span.icon {
  color: var(--color-secondary);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text-main);
  margin: 0 0 1.2rem;
}

.hero-title .highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(197, 160, 89, 0.25); /* Gold transparent */
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-metrics {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

.metric-item strong {
  display: block;
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 800;
}

.metric-item span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Hero Card Styling */
.hero-card-wrap {
  position: relative;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  position: relative;
  z-index: 2;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-bg-alt);
}

li.menu-item {
  list-style: none;
}

.hero-card-title {
  font-weight: 700;
  color: var(--color-primary);
}

.hero-card-badge {
  font-size: 0.75rem;
  background: var(--color-secondary);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.hero-card-body h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.hero-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Decorative elements behind card */
.hero-card-wrap::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  opacity: 0.05;
  z-index: 1;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* --- Why Grid --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary-light);
}

.why-icon {
  width: 50px;
  height: 50px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.why-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
  color: var(--color-text-main);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Keywords/Tags Section (SEO) --- */
.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2rem;
}

.keyword-tag {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: all 0.2s;
}

.keyword-tag:hover {
  border-color: var(--color-secondary);
  color: var(--color-primary);
  background: #fffbeb; /* light gold tint */
}

/* --- Blog Grid & Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* Uniform height */
}

.post-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
}

.post-thumb {
  height: 220px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  overflow: hidden; /* Fix image overlap */
  position: relative;
}

.post-thumb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.post-thumb-link:hover {
  opacity: 0.9;
}

.post-thumb-link span {
  display: block;
  padding: 1rem;
  text-align: center;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers the area perfectly */
  transition: transform 0.6s ease;
  display: block;
}

.post-card:hover .post-thumb img {
  transform: scale(1.08); /* Subtle zoom effect */
}

.post-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-size: 0.75rem;
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
  line-height: 1.4;
}

.post-title a {
  color: var(--color-text-main);
}

.post-title a:hover {
  color: var(--color-primary);
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.post-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

/* --- Video & Gallery (Restored) --- */
.video-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}

.video-card {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.video-frame {
  aspect-ratio: 16/9;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.play-button::after {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.gallery-card {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-item {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  padding: 0.5rem;
  text-align: center;
}

.gallery-item.large {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

/* --- Consult Section & Forms --- */
.consult-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.consult-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #fff;
}

.consult-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-full {
  grid-column: 1 / -1;
}

.form-field {
  margin-bottom: 0.5rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.form-field input:focus,
.form-field textarea:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-secondary);
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.form-check input {
  margin-top: 0.2rem;
}

.captcha-field {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(255, 255, 255, 0.2);
}

.captcha-field label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.captcha-field input[type="number"] {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

.captcha-field input[type="number"]:focus {
  border-color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.2);
}

.notice {
  font-size: 0.9rem;
  line-height: 1.5;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.consult-points li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-right: 1.5rem;
  color: var(--color-text-muted);
}

.consult-points li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

/* --- Footer --- */
footer {
  background: var(--color-text-main); /* Dark footer */
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0;
  font-size: 0.9rem;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Archive Page --- */
.archive-page {
  background: var(--color-bg);
}

.archive-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 2rem) 0 4rem;
  background: linear-gradient(
    120deg,
    rgba(15, 44, 89, 0.95),
    rgba(15, 44, 89, 0.9) 45%,
    rgba(197, 160, 89, 0.4)
  );
  color: #fff;
  isolation: isolate;
}

.archive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 15% 25%,
      rgba(197, 160, 89, 0.25),
      transparent 35%
    ),
    radial-gradient(
      circle at 85% 35%,
      rgba(255, 255, 255, 0.12),
      transparent 45%
    );
  z-index: -1;
}

.archive-hero::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 10%;
  width: 80%;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(60px);
  z-index: -1;
}

.archive-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  z-index: 1;
}

.archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
}

.archive-title {
  font-size: 2.6rem;
  margin: 1rem 0 0.6rem;
  color: #fff;
}

.archive-lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  margin: 0 0 1.6rem;
  max-width: 720px;
  text-align: justify;
}

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

.meta-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
  color: #fff;
}

.meta-box strong {
  display: block;
  font-size: 1.3rem;
  color: #fff;
  margin: 0.2rem 0;
}

.meta-box small {
  color: rgba(255, 255, 255, 0.78);
}

.meta-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.archive-hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card-hover);
  padding: 1.8rem;
}

.archive-hero-card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.archive-hero-card ul {
  margin: 1rem 0 1.5rem;
  padding-right: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.archive-hero-card li {
  position: relative;
  margin-bottom: 0.5rem;
}

.archive-hero-card li::before {
  content: "•";
  position: absolute;
  right: -1.1rem;
  color: var(--color-secondary);
}

.archive-hero-note {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
}

.archive-hero-note .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-secondary);
}

.note-label {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.note-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.archive-toolbar {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
  background: var(--color-bg-alt);
}

.archive-toolbar-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.archive-search {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.75rem 0.75rem 0.6rem;
  box-shadow: var(--shadow-sm);
}

.search-prefix {
  padding: 0.45rem 0.75rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: 700;
}

.archive-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text-main);
}

.archive-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.filter-label {
  font-weight: 700;
  color: var(--color-primary);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.filter-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-chip.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.chip-count {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: inherit;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

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

.result-count {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--color-primary);
}

.active-filter {
  color: var(--color-secondary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.archive-grid .post-card {
  border-color: var(--color-border);
}

.article-card .post-meta {
  display: flex;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.meta-divider {
  color: var(--color-border-hover);
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
}

.post-tags-sm {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.archive-pagination {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.page-link-item a,
.page-link-item span {
  display: inline-block;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  background: #fff;
  min-width: 42px;
  text-align: center;
}

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

.page-link-item a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.archive-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.archive-empty .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.archive-empty h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.archive-empty p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.archive-empty-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Archive Header */
.archive-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
}

.archive-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.archive-breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumb-separator {
  color: var(--color-border);
}

.breadcrumb-current {
  color: var(--color-text-main);
  font-weight: 600;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.archive-icon {
  font-size: 2rem;
  opacity: 0.8;
}

.archive-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.archive-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.archive-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.archive-count strong {
  color: var(--color-primary);
  font-size: 1.2rem;
}

/* Author Header */
.author-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1rem;
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar img {
  border-radius: 50%;
  border: 3px solid var(--color-secondary);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}

.author-info {
  flex: 1;
}

/* Related Terms */
.archive-related {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
}

.archive-related h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.related-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.term-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.term-tag:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.2);
}

.term-count {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-right: 0.3rem;
}

.term-tag:hover .term-count {
  opacity: 0.9;
}

/* Pagination Styles */
.archive-pagination .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  background: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-bg-alt);
  transform: translateY(-2px);
}

.archive-pagination .page-numbers.current {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.archive-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.archive-pagination .page-numbers.dots:hover {
  transform: none;
  background: transparent;
}

.archive-pagination .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

/* Responsive Archive */
@media (max-width: 768px) {
  .archive-title {
    font-size: 2rem;
  }

  .author-header {
    flex-direction: column;
    text-align: center;
  }

  .author-avatar {
    margin: 0 auto;
  }

  .archive-meta {
    justify-content: center;
  }

  .archive-pagination .page-numbers {
    padding: 0.5rem 0.7rem;
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

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

/* --- About Page --- */
.about-page {
  background: var(--color-bg);
}

.about-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 1.5rem) 0 4rem;
  background: linear-gradient(
    135deg,
    rgba(15, 44, 89, 0.95),
    rgba(15, 44, 89, 0.85) 60%,
    rgba(197, 160, 89, 0.4)
  );
  color: #fff;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 15% 20%,
      rgba(255, 255, 255, 0.12),
      transparent 45%
    ),
    radial-gradient(circle at 85% 10%, rgba(197, 160, 89, 0.2), transparent 40%);
  pointer-events: none;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.about-title {
  font-size: 2.4rem;
  margin: 1rem 0 0.8rem;
}

.about-lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 720px;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.about-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.about-hero-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.8rem;
  color: var(--color-text-main);
}

.about-hero-card h3 {
  margin: 0 0 0.8rem;
  color: var(--color-primary);
}

.about-hero-card p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.about-pill {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 999px;
  font-weight: 700;
}

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

.about-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
}

.about-list {
  margin-top: 1rem;
  padding-right: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.about-list li {
  margin-bottom: 0.6rem;
  position: relative;
}

.about-list li::before {
  content: "•";
  position: absolute;
  right: -1.2rem;
  color: var(--color-secondary);
  font-size: 1.2rem;
}

.about-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.step {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.step strong {
  color: var(--color-primary);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 800;
}

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

.team-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.team-avatar {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 800;
}

.about-cta-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.about-cta-actions {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
  }

  .about-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Contact Page --- */
.contact-page {
  background: var(--color-bg);
}

.contact-hero {
  padding: calc(var(--header-height) + 1.5rem) 0 4rem;
  background: linear-gradient(
    120deg,
    rgba(15, 44, 89, 0.92),
    rgba(15, 44, 89, 0.88) 60%,
    rgba(197, 160, 89, 0.4)
  );
  color: #fff;
}

.contact-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-title {
  font-size: 2.2rem;
  margin: 1rem 0 0.6rem;
}

.contact-lead {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.3rem;
  font-size: 1.05rem;
  max-width: 700px;
}

.contact-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-detail {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.contact-detail a,
.contact-detail span {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.detail-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.2rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  color: var(--color-text-main);
}

.contact-card h3 {
  margin: 0 0 0.6rem;
  color: var(--color-primary);
}

.contact-card p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.1);
}

.contact-form textarea {
  resize: vertical;
}

.form-check.tight {
  margin: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

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

.info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}

.info-card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.info-card p {
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .contact-hero-inner {
    grid-template-columns: 1fr;
  }

  .contact-stats {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: flex-start;
  }
}

/* --- Mobile --- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

header.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0; /* Slide-in menu from left */
    width: 320px;
    background: linear-gradient(180deg, #0f2c59 0%, #0c2348 65%, #0f2c59 100%);
    color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 1.2rem;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
  }

  header.nav-open nav {
    transform: translateX(0);
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid white;
    background: rgb(16 43 88);
    box-shadow: none;
    font-size: 1.2rem;
    color: #ffffff;
  }

  nav a {
    width: 100%;
    padding: 0.95rem 1rem;
    text-decoration: none;
    font-weight: 800;
    color: #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    letter-spacing: -0.01em;
  }

  nav a::after {
    display: none;
  }

  .nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
  }

  .nav-cta .btn {
    display: none;
  }

  nav ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
  }

  nav li {
    list-style: none !important;
  }

  nav li::marker {
    content: none;
  }

  nav li:hover a {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    transform: translateX(6px);
    background: linear-gradient(
      120deg,
      rgba(197, 160, 89, 0.35),
      rgba(255, 255, 255, 0.08)
    );
  }

  nav a::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-secondary);
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(197, 160, 89, 0.15);
  }

  .hero-grid,
  .consult-grid,
  .video-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .why-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .archive-hero {
    padding-top: calc(var(--header-height) + 1.5rem);
  }

  .archive-toolbar {
    margin-top: 0;
  }

  .archive-hero-inner,
  .archive-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .archive-toolbar-grid {
    align-items: flex-start;
  }

  .archive-search {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
  }

  .search-prefix {
    border-radius: 10px;
  }

  .archive-search input {
    flex: 1 1 180px;
    min-width: 0;
  }

  .archive-search .btn {
    width: 100%;
    justify-content: center;
  }

  .archive-meta {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .archive-empty-actions {
    flex-direction: column;
  }
}

/* --- Single Post --- */

.single-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 4rem 0 6rem;
  position: relative;
  margin-bottom: -3rem;
}

.single-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3rem;
  background: var(--color-bg);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.single-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.single-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.single-category a {
  color: inherit;
}

.single-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  line-height: 1.4;
}

.single-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item span.dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
}

/* Single Post Layout with Sidebar */
.single-layout {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.single-main {
    min-width: 0; /* Prevent overflow */
}

.single-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    align-self: start;
    max-height: calc(100vh - var(--header-height) - 4rem);
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom Scrollbar for Sidebar */
.single-sidebar::-webkit-scrollbar {
    width: 6px;
}

.single-sidebar::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
    border-radius: 10px;
}

.single-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 10px;
}

.single-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

.single-thumbnail {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
  border: 4px solid #fff;
}

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

.single-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--color-text-main);
}

.single-content h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin: 2.5rem 0 1rem;
  font-weight: 800;
}

.single-content h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 2rem 0 0.8rem;
  font-weight: 700;
}

.single-content p {
  margin-bottom: 1.5rem;
}

.single-content ul,
.single-content ol {
  margin-bottom: 1.5rem;
  padding-right: 1.5rem;
}

.single-content li {
  margin-bottom: 0.5rem;
}

.single-content blockquote {
  border-right: 4px solid var(--color-secondary);
  background: var(--color-bg-alt);
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  font-style: italic;
  color: var(--color-text-main);
  border-radius: var(--radius-sm);
}

.single-tags {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag-cloud-link {
  background: var(--color-bg-alt);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.tag-cloud-link:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Related Posts */
.related-posts {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.related-posts h3 {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

@media (max-width: 992px) {
  .single-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .single-sidebar {
    position: static;
    max-height: none;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .single-title {
    font-size: 1.8rem;
  }

  .single-meta {
    flex-direction: column;
    gap: 0.8rem;
  }
  .hero {
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
  }
}

/* --- Comments Section --- */
.comments-area {
  margin-top: 4rem;
  padding: 3rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 1rem;
}

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

.comment-list li.comment {
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
}

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

.comment-body {
  position: relative;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-author img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.comment-author .fn {
  font-style: normal;
  font-weight: 700;
  color: var(--color-text-main);
  font-size: 1rem;
}

.comment-metadata {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.comment-content {
  color: var(--color-text-main);
  font-size: 0.95rem;
  line-height: 1.7;
}

.reply {
  margin-top: 1rem;
}

.comment-reply-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-secondary);
  font-weight: 600;
  border: 1px solid var(--color-secondary);
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  transition: all 0.2s;
}

.comment-reply-link:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* Comment Form */
.comment-respond {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px dashed var(--color-border);
}

.comment-reply-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.comment-form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.comment-form-field {
  flex: 1;
  margin-bottom: 1.5rem;
}

.comment-form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.comment-form-field input,
.comment-form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.comment-form-field input:focus,
.comment-form-field textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.1);
}

.form-submit {
  margin-top: 1rem;
}

/* Responsive Comments */
@media (max-width: 768px) {
    .comment-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .comments-area {
        padding: 1.5rem;
    }
}

/* --- 404 Error Page --- */
.error-404-page {
  min-height: calc(100vh - var(--header-height) - 200px);
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(15, 44, 89, 0.03) 0%, rgba(197, 160, 89, 0.05) 100%);
}

.error-404-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.error-number {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.error-digit {
  font-size: 8rem;
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 0 4px 20px rgba(15, 44, 89, 0.2);
  animation: bounce 2s ease-in-out infinite;
  line-height: 1;
}

.error-digit-middle {
  color: var(--color-secondary);
  animation-delay: 0.2s;
}

.error-digit:last-child {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.error-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin: 0 0 1rem;
}

.error-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* Search Box */
.error-search {
  margin-bottom: 3rem;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(15, 44, 89, 0.1);
}

.search-icon {
  color: var(--color-text-muted);
  font-size: 20px;
  margin-left: 0.5rem;
}

.search-input-404 {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.5rem;
  font-family: inherit;
  background: transparent;
}

.search-btn-404 {
  margin-right: 0;
  flex-shrink: 0;
}

/* Actions */
.error-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.error-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.error-actions .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Helpful Links */
.error-helpful {
  margin-bottom: 3rem;
}

.helpful-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.helpful-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.helpful-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: right;
}

.helpful-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: var(--color-secondary);
}

.helpful-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 1rem;
}

.helpful-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.helpful-card-title a {
  color: var(--color-text-main);
  transition: color 0.2s;
}

.helpful-card-title a:hover {
  color: var(--color-primary);
}

.helpful-card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Categories */
.error-categories {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.categories-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  color: var(--color-text-main);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.category-chip:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.4rem;
}

.category-chip:hover .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Responsive 404 */
@media (max-width: 768px) {
  .error-digit {
    font-size: 5rem;
  }

  .error-title {
    font-size: 1.5rem;
  }

  .error-description {
    font-size: 1rem;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .helpful-grid {
    grid-template-columns: 1fr;
  }

  .search-input-wrapper {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 1rem;
    gap: 0.8rem;
  }

  .search-input-404 {
    width: 100%;
    text-align: center;
  }

  .search-btn-404 {
    width: 100%;
  }
}

/* --- Post Rating System --- */
.post-rating-section {
  margin: 3rem 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(15, 44, 89, 0.02) 0%, rgba(197, 160, 89, 0.03) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  text-align: center;
}

.rating-header {
  margin-bottom: 2rem;
}

.rating-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
}

.rating-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
}

.rating-percentage {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-secondary);
  line-height: 1;
}

.rating-label {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.rating-count {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.rating-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.rating-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-family: inherit;
}

.rating-btn .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.rating-btn-helpful {
  background: linear-gradient(120deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.rating-btn-helpful:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4);
}

.rating-btn-not-helpful {
  background: linear-gradient(120deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.rating-btn-not-helpful:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.4);
}

.rating-btn:disabled {
  cursor: not-allowed;
  transform: none !important;
}

.rating-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
  border-radius: var(--radius-md);
  animation: fadeIn 0.5s ease;
}

.rating-thanks .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #10b981;
}

.rating-thanks p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin: 0;
}

.rating-message {
  margin-top: 1.5rem;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Rating */
@media (max-width: 768px) {
  .post-rating-section {
    padding: 1.5rem;
  }

  .rating-title {
    font-size: 1.2rem;
  }

  .rating-percentage {
    font-size: 2rem;
  }

  .rating-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .rating-btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* --- Sidebar & Widgets --- */
.sidebar {
  width: 100%;
  max-width: 350px;
}

.widget {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}

/* Most Helpful Posts Widget */
.helpful-posts-widget {
  list-style: none;
  margin: 0;
  padding: 0;
}

.helpful-post-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

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

.helpful-post-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.helpful-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.helpful-post-item:hover .helpful-post-thumb img {
  transform: scale(1.1);
}

.helpful-post-content {
  flex: 1;
  min-width: 0;
}

.helpful-post-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.helpful-post-title a {
  color: var(--color-text-main);
  transition: color 0.2s;
}

.helpful-post-title a:hover {
  color: var(--color-primary);
}

.helpful-post-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.post-date {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-date::before {
  content: "📅";
  font-size: 0.9rem;
}

.no-helpful-posts {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* Responsive Sidebar */
@media (max-width: 900px) {
  .sidebar {
    max-width: 100%;
  }
}
