/*
Theme Name: Martina Consulting Studio v2
Theme URI: https://martinavisa.com
Author: Martina Consulting Studio
Description: 极简、现代化的美国签证咨询服务网站
Version: 2.0.1
License: GNU General Public License v2
Text Domain: martina-visa
*/

/* ==========================================================================
   CSS变量系统 
   ========================================================================== */
:root {
  /* 颜色 */
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --success: #10B981;
  --success-dark: #059669;
  --warning: #F59E0B;
  --warning-dark: #D97706;
  --text: #1E293B;
  --text-light: #64748B;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;

  /* 间距 */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;

  /* 圆角 */
  --radius: 10px;
  --radius-lg: 15px;
  --radius-full: 50px;

  /* 阴影 */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   重置和基础
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

a {
  text-decoration: none;
  transition: all 0.3s;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-8) 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem var(--space-4);
}

.site-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  letter-spacing: -0.03em;
}

.site-logo:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Custom Logo Support */
.custom-logo-link {
  display: inline-block;
  line-height: 0;
  transition: all 0.3s ease;
}

.custom-logo-link:hover {
  transform: translateY(-2px);
}

.custom-logo {
  max-height: 64px;
  width: auto;
  display: block;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.1));
}

.custom-logo:hover {
  filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.2));
}

.main-nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 1.5rem);
  list-style: none;
  align-items: center;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  display: inline-block;
}

.main-nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0;
  border-radius: var(--radius);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.main-nav a:hover::after {
  width: calc(100% - 1.5rem);
}

.main-nav a.current-menu-item,
.main-nav a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.main-nav a.current-menu-item::after,
.main-nav a.active::after {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.1));
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(30, 64, 175, 0.15));
  border-color: var(--primary);
  transform: scale(1.05);
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-menu-toggle.active {
  background: var(--primary);
  border-color: var(--primary);
}

.mobile-menu-toggle.active span {
  background: var(--white);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: var(--space-8) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1), transparent 50%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: var(--space-2);
}

.hero .subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
  opacity: 0.95;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-block;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

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

.btn-warning {
  background: var(--warning);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
  background: var(--warning-dark);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  background: var(--success-dark);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}


.btn-group {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   统计数据
   ========================================================================== */
.stats {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: var(--space-6) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  text-align: center;
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ==========================================================================
   卡片
   ========================================================================== */
.card {
  background: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

.card h3 {
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.card.featured {
  border: 3px solid var(--success);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03), rgba(5, 150, 105, 0.03));
  position: relative;
}

.featured-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: linear-gradient(135deg, var(--warning), var(--warning-dark));
  color: var(--white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   网格
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ==========================================================================
   价值卡片
   ========================================================================== */
.value-card {
  background: var(--white);
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s;
  border-top: 4px solid transparent;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--success);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-3);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.value-icon svg {
  width: 45px;
  height: 45px;
  fill: var(--white);
}

.value-card h3 {
  color: var(--primary);
  font-size: 1.375rem;
  margin-bottom: var(--space-2);
}

.value-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ==========================================================================
   表单
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-3);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: var(--space-6) 0 var(--space-2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer-section h3 {
  margin-bottom: var(--space-2);
  color: var(--white);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-section ul {
  list-style: none;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-bottom a:visited {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
  color: rgba(255, 255, 255, 0.9);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   工具类
   ========================================================================== */
.text-center {
  text-align: center;
}

.bg-light {
  background: var(--bg);
}

.bg-white {
  background: var(--white);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    padding: 100px 32px 32px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    overflow-y: auto;
    border-left: 2px solid rgba(37, 99, 235, 0.1);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .main-nav li {
    animation: slideInRight 0.3s ease forwards;
    opacity: 0;
  }

  .main-nav.active li:nth-child(1) {
    animation-delay: 0.1s;
  }

  .main-nav.active li:nth-child(2) {
    animation-delay: 0.15s;
  }

  .main-nav.active li:nth-child(3) {
    animation-delay: 0.2s;
  }

  .main-nav.active li:nth-child(4) {
    animation-delay: 0.25s;
  }

  .main-nav.active li:nth-child(5) {
    animation-delay: 0.3s;
  }

  @keyframes slideInRight {
    to {
      opacity: 1;
      transform: translateX(0);
    }

    from {
      opacity: 0;
      transform: translateX(20px);
    }
  }

  .main-nav a {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(37, 99, 235, 0.1);
    text-align: center;
    font-weight: 700;
  }

  .main-nav a:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.02);
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a.current-menu-item,
  .main-nav a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  }

  .header-container {
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
  }

  .hero {
    padding: var(--space-6) 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .value-card {
    padding: var(--space-4) var(--space-3);
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-2);
  }

  .btn {
    padding: 0.875rem var(--space-4);
    font-size: 1rem;
  }
}

/* ==========================================================================
   Blog Styles
   ========================================================================== */

/* Blog Archive */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-4);
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

.blog-thumbnail {
  display: block;
  overflow: hidden;
  height: 220px;
}

.blog-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.blog-content {
  padding: var(--space-3);
}

.blog-meta {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-light);
}

.blog-category {
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.blog-title {
  margin-bottom: var(--space-2);
  font-size: 1.5rem;
}

.blog-title a {
  color: var(--text);
  transition: color 0.3s;
}

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

.blog-excerpt {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.blog-read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.blog-read-more:hover {
  gap: 0.75rem;
}

/* Blog Single Post */
.single-post {
  background: var(--bg);
}

.post-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: var(--space-8) 0 var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.post-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.post-header .container {
  position: relative;
  z-index: 1;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: 0.95rem;
  opacity: 0.95;
}

.post-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.post-date::before {
  content: '📅';
  font-size: 1rem;
}

.post-category {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.post-category:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.post-header h1 {
  color: var(--white);
  margin-top: var(--space-2);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.post-featured-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  margin-top: -60px;
  z-index: 2;
}

.post-featured-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.post-featured-image:hover img {
  transform: scale(1.02);
}

.post-content-wrapper {
  padding: var(--space-8) 0;
  background: var(--white);
  margin-top: -40px;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.9;
  color: var(--text);
  font-size: 1.1rem;
}

.post-content h2 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  padding-bottom: var(--space-2);
  border-bottom: 3px solid var(--primary);
  position: relative;
}

.post-content h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--warning);
}

.post-content h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  padding-left: var(--space-2);
  border-left: 4px solid var(--primary);
}

.post-content p {
  margin-bottom: var(--space-3);
  line-height: 1.9;
}

.post-content p:first-of-type {
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 500;
  line-height: 2;
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-4);
}

.post-content ul li,
.post-content ol li {
  margin-bottom: var(--space-2);
  padding-left: var(--space-1);
  line-height: 1.8;
}

.post-content ul li::marker {
  color: var(--primary);
}

.post-content ol li::marker {
  color: var(--primary);
  font-weight: 700;
}

.post-content img {
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.post-content img:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.post-content blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(30, 64, 175, 0.05));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}

.post-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  text-underline-offset: 3px;
  transition: all 0.3s;
}

.post-content a:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary-dark);
}

.post-content code {
  padding: 0.2rem 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--primary-dark);
}

.post-content pre {
  background: var(--text);
  color: var(--white);
  padding: var(--space-3);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: var(--space-4) 0;
}

.post-content pre code {
  background: transparent;
  color: var(--white);
  padding: 0;
}

.post-navigation {
  max-width: 800px;
  margin: var(--space-8) auto 0;
  padding-top: var(--space-6);
  border-top: 3px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.post-nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.3s;
}

.post-nav-link:hover::before {
  opacity: 1;
}

.post-nav-link>* {
  position: relative;
  z-index: 1;
}

.post-nav-link:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.2);
}

.post-nav-link.prev .nav-label::before {
  content: '← ';
  margin-right: 0.5rem;
}

.post-nav-link.next {
  text-align: right;
}

.post-nav-link.next .nav-label::after {
  content: ' →';
  margin-left: 0.5rem;
}

.nav-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: var(--space-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.post-nav-link:hover .nav-label {
  color: rgba(255, 255, 255, 0.95);
}

.nav-title {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.4;
  transition: color 0.3s;
}

.post-nav-link:hover .nav-title {
  color: var(--white);
}

/* Pagination */
.pagination {
  margin-top: var(--space-6);
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s;
}

.pagination a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.no-posts {
  text-align: center;
  padding: var(--space-8) 0;
  color: var(--text-light);
}

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

  .post-header {
    padding: var(--space-6) 0 var(--space-4);
  }

  .post-header h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .post-meta {
    flex-direction: column;
    gap: var(--space-2);
  }

  .post-featured-image {
    margin-top: -40px;
    max-height: 400px;
  }

  .post-content-wrapper {
    padding: var(--space-6) 0;
    margin-top: -30px;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content p:first-of-type {
    font-size: 1.1rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
    margin-top: var(--space-4);
  }

  .post-content h3 {
    font-size: 1.25rem;
  }

  .post-navigation {
    grid-template-columns: 1fr;
    margin-top: var(--space-6);
    padding-top: var(--space-4);
  }

  .post-nav-link {
    padding: var(--space-3);
  }

  .post-nav-link.next {
    text-align: left;
  }

  .post-nav-link.next .nav-label {
    text-align: left;
  }
}

/* ==========================================================================
   Service Single Page Styles
   ========================================================================== */

/* Service Hero */
.service-hero {
  padding: var(--space-6) 0 var(--space-4);
  background: linear-gradient(135deg, var(--bg) 0%, var(--white) 100%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
  transition: all 0.3s;
}

.back-link:hover {
  color: var(--primary-dark);
  transform: translateX(-5px);
}

.service-hero h1 {
  margin-bottom: var(--space-4);
  color: var(--text);
}

.service-meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.meta-icon {
  font-size: 2rem;
}

.meta-item>div {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* Featured Image */
.service-featured-image {
  padding: var(--space-4) 0;
}

.service-featured-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Content Section */
.service-content-section {
  padding: var(--space-6) 0;
}

.service-content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-6);
  align-items: start;
}

.service-main-content {
  background: var(--white);
}

.service-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: var(--space-6);
}

.service-description p {
  margin-bottom: var(--space-3);
}

.service-description h2,
.service-description h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.service-description ul,
.service-description ol {
  margin-left: var(--space-4);
  margin-bottom: var(--space-3);
}

.service-description li {
  margin-bottom: var(--space-1);
}

/* Service Sections */
.service-section {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--bg);
  border-radius: var(--radius-lg);
}

.service-section h2 {
  margin-bottom: var(--space-3);
  color: var(--primary);
}

.service-checklist {
  list-style: none;
  margin: 0;
}

.service-checklist li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  line-height: 1.6;
}

.service-checklist li:last-child {
  border-bottom: none;
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.process-step {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  background: var(--white);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.process-step:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  padding-top: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Sidebar */
.service-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-cta {
  margin-bottom: var(--space-4);
  text-align: center;
}

.sidebar-cta h3 {
  margin-bottom: var(--space-2);
  color: var(--text);
}

.sidebar-cta>p {
  color: var(--text-light);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.btn-block {
  width: 100%;
  display: block;
  text-align: center;
}

.contact-info {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 2px solid var(--border);
  text-align: left;
}

.contact-item {
  margin-bottom: var(--space-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--primary);
  word-break: break-all;
}

.contact-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Sidebar Features */
.sidebar-features h3 {
  margin-bottom: var(--space-3);
  color: var(--text);
}

.feature-list {
  list-style: none;
  margin: 0;
}

.feature-list li {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.feature-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.feature-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.feature-list p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Button Outline */
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
  .service-content-grid {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .service-hero {
    padding: var(--space-4) 0 var(--space-3);
  }

  .service-meta {
    gap: var(--space-2);
  }

  .meta-item {
    padding: var(--space-2);
    flex: 1 1 100%;
  }

  .meta-icon {
    font-size: 1.5rem;
  }

  .meta-label {
    font-size: 0.8rem;
  }

  .meta-value {
    font-size: 1rem;
  }

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

  .service-section {
    padding: var(--space-3);
  }

  .process-step {
    padding: var(--space-2);
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .step-content {
    font-size: 0.95rem;
  }
}