/* ============================================
   Mary Xu Studio — Custom Stylesheet
   Design: Modern Professional Consulting
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy:        #1B3A5C;
  --navy-dark:   #122843;
  --navy-light:  #2a5080;
  --amber:       #D97706;
  --amber-light: #F59E0B;
  --teal:        #0E9F8E;
  --teal-light:  #14B8A6;
  --bg-body:     #F7F9FC;
  --bg-white:    #FFFFFF;
  --text-dark:   #1E293B;
  --text-mid:    #475569;
  --text-light:  #94A3B8;
  --border:      #E2E8F0;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(27,58,92,.10);
  --shadow-lg:   0 12px 40px rgba(27,58,92,.16);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --transition:  all .25s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: .75rem;
}

.display-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.5px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}

.section-subtitle {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}

.nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.nav-brand:hover { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  font-size: .95rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: #EEF4FB;
  color: var(--navy);
}

.nav-cta {
  background: var(--navy) !important;
  color: white !important;
  padding: .5rem 1.2rem !important;
  border-radius: 24px !important;
}

.nav-cta:hover {
  background: var(--teal) !important;
  color: white !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a6b7a 100%);
  color: white;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #93E5DF;
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 24px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -.5px;
}

.hero-title .highlight {
  color: #5EEAD4;
  position: relative;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
}

.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #5EEAD4;
  line-height: 1;
}

.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  margin-top: .2rem;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.hero-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  color: white;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform .3s ease;
}

.hero-card:hover { transform: translateX(6px); }

.hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-card-icon.green  { background: rgba(94,234,212,.2); color: #5EEAD4; }
.hero-card-icon.amber  { background: rgba(251,191,36,.2); color: #FBBF24; }
.hero-card-icon.blue   { background: rgba(147,197,253,.2); color: #93C5FD; }

.hero-card-text h6 { font-size: .9rem; color: white; margin: 0; font-weight: 600; }
.hero-card-text p  { font-size: .78rem; color: rgba(255,255,255,.65); margin: .1rem 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14,159,142,.3);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: white;
  color: white;
}

.btn-navy {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
}

.btn-sm {
  padding: .45rem 1rem;
  font-size: .875rem;
}

.btn-lg {
  padding: .85rem 1.8rem;
  font-size: 1.05rem;
}

/* ---------- Section Wrapper ---------- */
.section {
  padding: 72px 0;
}
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(14,159,142,.1);
  padding: .3rem .8rem;
  border-radius: 20px;
  margin-bottom: .75rem;
}

/* ---------- Services Section ---------- */
.services-section {
  background: var(--bg-white);
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--teal), var(--navy));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}

.service-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleY(1); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.service-icon.navy  { background: rgba(27,58,92,.1); color: var(--navy); }
.service-icon.teal  { background: rgba(14,159,142,.1); color: var(--teal); }
.service-icon.amber { background: rgba(217,119,6,.1); color: var(--amber); }

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: .6rem;
}

.service-card p {
  color: var(--text-mid);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
}

/* ---------- Why Me Section ---------- */
.why-section { background: var(--bg-body); }

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.why-item:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.why-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.why-item h5 { font-size: 1rem; margin-bottom: .3rem; }
.why-item p  { color: var(--text-mid); font-size: .9rem; margin: 0; }

/* ---------- Testimonial / Case Strip ---------- */
.case-strip {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
  padding: 48px 0;
}

.case-stat {
  text-align: center;
  padding: 1rem;
}

.case-stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: #5EEAD4;
  line-height: 1;
}

.case-stat-text {
  font-size: .9rem;
  color: rgba(255,255,255,.72);
  margin-top: .35rem;
}

/* ---------- Blog Cards ---------- */
.blog-section { background: var(--bg-body); }

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(14,159,142,.3);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, #EEF4FB 0%, #D4E8FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--navy);
  opacity: .6;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
  margin-bottom: .6rem;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
  line-height: 1.45;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.blog-card-meta {
  font-size: .8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .75rem;
}

.blog-card-excerpt {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: auto;
}

.tag {
  display: inline-block;
  font-size: .72rem;
  color: var(--text-mid);
  background: #F1F5F9;
  padding: .2rem .55rem;
  border-radius: 4px;
  font-weight: 500;
}

/* ---------- Contact CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0e4d5c 100%);
  color: white;
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(14,159,142,.2) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: .75rem;
}

.cta-section p {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.72);
  padding: 56px 0 0;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-brand .brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

.footer-desc {
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,.55);
}

.footer-contact a {
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
  transition: var(--transition);
}

.footer-contact a:hover { color: var(--teal); }

.footer-heading {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}

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

.footer-links li { margin-bottom: .5rem; }

.footer-links a {
  color: rgba(255,255,255,.62);
  font-size: .9rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--teal-light); }

.footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.38);
}

/* ---------- Post / Article ---------- */
.post-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
  padding: 56px 0 48px;
}

.post-hero .post-cat {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5EEAD4;
  background: rgba(94,234,212,.15);
  padding: .3rem .8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.post-hero h1 {
  color: white;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}

.post-hero-meta i { margin-right: .35rem; }

.post-body {
  padding: 56px 0;
}

.post-content-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dark);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--navy);
  margin-top: 2.25rem;
  margin-bottom: .9rem;
}

.post-content h2 {
  font-size: 1.4rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}

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

.post-content p { margin-bottom: 1.25rem; }

.post-content a { color: var(--teal); font-weight: 500; }
.post-content a:hover { text-decoration: underline; }

.post-content blockquote {
  border-left: 4px solid var(--teal);
  background: rgba(14,159,142,.06);
  padding: 1rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1rem;
  color: var(--text-mid);
  font-style: italic;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-content li { margin-bottom: .4rem; }

.post-content code {
  background: #F1F5F9;
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .9em;
  color: #e53e3e;
}

.post-content pre {
  background: #1E293B;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content pre code {
  background: none;
  color: inherit;
  font-size: .9rem;
  padding: 0;
}

.post-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem auto;
  box-shadow: var(--shadow-md);
}

/* Post sidebar / meta card */
.post-meta-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.post-meta-card h6 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  margin-bottom: .75rem;
}

.post-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

/* Post navigation */
.post-nav {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-nav-link {
  display: block;
  padding: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-size: .88rem;
  color: var(--text-mid);
  text-decoration: none;
}

.post-nav-link:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  color: var(--navy);
}

.post-nav-link .nav-direction {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
  display: block;
  margin-bottom: .3rem;
}

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

.post-cta-box {
  background: linear-gradient(135deg, var(--navy), #0a4a5a);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.post-cta-box h4 { color: white; margin-bottom: .6rem; }
.post-cta-box p  { color: rgba(255,255,255,.75); margin-bottom: 1.5rem; font-size: .95rem; }

/* ---------- Blog Listing Page ---------- */
.blog-header-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
  padding: 56px 0;
}

.blog-header-section h1 {
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .5rem;
}

.blog-header-section p { color: rgba(255,255,255,.72); font-size: 1.05rem; }

.blog-body-section { padding: 48px 0; background: var(--bg-body); }

.search-bar-wrapper {
  position: relative;
  max-width: 480px;
}

.search-bar-wrapper input {
  width: 100%;
  padding: .7rem 3rem .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  background: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}

.search-bar-wrapper input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,159,142,.12);
}

.search-bar-wrapper .search-icon {
  position: absolute;
  right: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.filter-btn {
  padding: .4rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-white);
  color: var(--text-mid);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.search-result-count {
  font-size: .88rem;
  color: var(--text-light);
}

/* Pagination */
.pagination {
  display: flex;
  gap: .35rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}

.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-mid);
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

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

.page-item.active .page-link {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

/* ---------- About Page (basic) ---------- */
.profile-img-wrap {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--teal);
  box-shadow: var(--shadow-md);
  margin: 0 auto 1.5rem;
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .site-nav .nav-links-wrap {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem;
    z-index: 999;
  }

  .site-nav .nav-links-wrap.open { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    width: 100%;
  }

  .nav-links a { width: 100%; }

  .nav-cta { margin-top: .5rem; text-align: center; border-radius: 8px !important; }

  .nav-toggle { display: flex; }

  .hero-section { padding: 56px 0 64px; }

  .hero-stats { gap: 1.25rem; }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { text-align: left; }

  .section { padding: 48px 0; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .case-strip .col-3 { width: 50%; margin-bottom: 1.5rem; }
}

/* ---------- Utilities ---------- */
.text-teal   { color: var(--teal) !important; }
.text-navy   { color: var(--navy) !important; }
.text-amber  { color: var(--amber) !important; }
.text-mid    { color: var(--text-mid) !important; }
.text-light-c{ color: var(--text-light) !important; }

.bg-body-c   { background: var(--bg-body) !important; }
.bg-white-c  { background: var(--bg-white) !important; }

.rounded-md  { border-radius: var(--radius-md) !important; }
.rounded-lg  { border-radius: var(--radius-lg) !important; }

.shadow-sm-c { box-shadow: var(--shadow-sm) !important; }
.shadow-md-c { box-shadow: var(--shadow-md) !important; }
.shadow-lg-c { box-shadow: var(--shadow-lg) !important; }

.fw-800 { font-weight: 800; }

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

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

.fade-in-up {
  animation: fadeInUp .6s ease both;
}

.fade-in-up-1 { animation-delay: .1s; }
.fade-in-up-2 { animation-delay: .2s; }
.fade-in-up-3 { animation-delay: .3s; }

/* ---------- Print ---------- */
@media print {
  .site-nav, .site-footer, .btn, .cta-section, .post-nav { display: none !important; }
  body { background: white; }
  .post-hero { background: none; color: var(--text-dark); padding: 0; }
  .post-hero h1 { color: var(--navy); }
}
