/* ===== RESET & FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Darker Purple/Magenta base palette (Less pink) */
  --purple-900: #3b1b3e;
  --purple-800: #552758;
  --purple-700: #6d3372;
  --purple-600: #813d87;
  --purple-500: #93469A; /* Main brand color - darker/richer */
  --purple-400: #a75eb0;
  --purple-300: #ba7ac4;
  --purple-200: #ce9bd6;
  --purple-100: #e2bee8;
  --purple-50: #f4e3f7;
  --purple-25: #fdfafdf;

  /* Accent Color (Blue from banner highlight, or red if interpreted as highlight color. Using the dark blue/indigo #4651a7) */
  --accent-500: #4651a7;
  --accent-600: #384288;

  /* Functional */
  --white: #ffffff;
  --text-heading: #1e1829;
  --text-body: #493f5c;
  --text-muted: #796d8e;
  --border: rgba(139, 116, 174, 0.15);
  --bg-page: #fcfbfd;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(85, 68, 115, 0.06);
  --shadow-md: 0 8px 32px rgba(85, 68, 115, 0.1);
  --shadow-lg: 0 16px 48px rgba(85, 68, 115, 0.15);
  --shadow-xl: 0 24px 64px rgba(85, 68, 115, 0.2);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.35s;
  --duration-slow: 0.6s;

  /* Sizing */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --max-width: 1200px;
  --nav-height: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

ul { list-style: none; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-heading);
  line-height: 1.25;
}

.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ===== PAGE TRANSITION ===== */
.page-wrapper {
  opacity: 0;
  transform: translateY(20px);
  animation: pageIn 0.8s var(--ease) forwards;
}

@keyframes pageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease),
              transform 0.5s var(--ease);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.36s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.48s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0; /* Небольшой аккуратный отступ */
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-area a {
  display: flex;
  align-items: center;
}

/* ===== IMAGE LOGO ===== */
.logo-img-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.logo-img-link:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.top-bar-logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* ===== CSS LOGO ===== */
.css-logo {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  text-decoration: none;
  border-bottom: 2px solid var(--purple-500);
  padding-bottom: 3px;
  transition: transform var(--duration) var(--ease);
}

.css-logo:hover {
  transform: scale(1.02);
}

.css-logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--purple-700);
  line-height: 1;
}

.css-logo-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.css-logo-bar {
  width: 18px;
  background: linear-gradient(180deg, var(--purple-400) 0%, var(--purple-700) 100%);
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Lora', serif;
  font-weight: bold;
  font-size: 14px;
  padding-bottom: 4px;
  border: 1px solid var(--purple-800);
  border-bottom: none;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3);
}

.css-logo-bar:empty { display: none; }
.css-logo-bar:nth-child(1) { height: 26px; }
.css-logo-bar:nth-child(2) { height: 32px; }
.css-logo-bar:nth-child(3) { height: 38px; }
.css-logo-bar:nth-child(4) { height: 44px; }
.css-logo-bar:nth-child(5) { height: 50px; }

.logo-area a:hover .logo-img {
  transform: scale(1.02); /* Subtle Apple-like hover */
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-top: 20px;
}

.top-contacts a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-heading);
  font-size: 14px;
  font-weight: 500;
}

.top-contacts a:hover {
  color: var(--purple-500);
}

.top-contacts .icon {
  width: 18px;
  height: 18px;
  color: var(--purple-500);
  flex-shrink: 0;
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: box-shadow var(--duration) var(--ease);
}

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

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.nav-links a {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 0 7px 16px 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-heading);
  position: relative;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-500), var(--purple-300));
  border-radius: 3px 3px 0 0;
  transition: transform var(--duration) var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a:hover {
  color: var(--purple-500);
}

.nav-links a.active {
  color: var(--purple-500);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-cta-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--accent-500); /* Use secondary color */
  color: var(--white) !important;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-left: 0;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 4px 16px rgba(70, 81, 167, 0.25);
  flex-shrink: 0;
}

.nav-cta-link::after {
  display: none !important;
}

.nav-cta-link:hover {
  transform: translateY(-2px);
  background: var(--accent-600);
  box-shadow: 0 8px 28px rgba(70, 81, 167, 0.35);
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--purple-700);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(60, 47, 84, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(92, 58, 122, 0.65) 0%,
    rgba(126, 90, 162, 0.45) 40%,
    rgba(164, 136, 200, 0.30) 70%,
    rgba(204, 184, 229, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  max-width: 640px;
}

.hero-title {
  font-size: 50px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.3s var(--ease) forwards;
}

.hero-text {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 540px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.5s var(--ease) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--purple-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 20px rgba(85, 68, 115, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--purple-600);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(85, 68, 115, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary .btn-arrow {
  position: relative;
  z-index: 1;
  transition: transform var(--duration) var(--ease);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-family: 'Inter', sans-serif;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--purple-700);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-outline-purple {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--purple-700);
  border: 2px solid var(--purple-400);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-family: 'Inter', sans-serif;
}

.btn-outline-purple:hover {
  background: var(--purple-500);
  color: var(--white);
  border-color: var(--purple-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(85, 68, 115, 0.25);
}

.hero-cta {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.7s var(--ease) forwards;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white);
  padding: 0;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.stats-bar .container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: var(--purple-50);
}

.stat-number {
  font-family: 'Lora', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--purple-700);
  margin-bottom: 4px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-item-wide {
  padding: 28px 24px;
  text-align: center;
  grid-column: 1 / -1;
}

.stat-label-large {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--purple-700);
  letter-spacing: 0.5px;
}

/* ===== SECTION COMMONS ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 16px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-500);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== SERVICES CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration) var(--ease);
  border: 1px solid var(--border);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-700), var(--purple-300));
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

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

.service-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
  filter: brightness(1.2) saturate(0.9);
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
  filter: brightness(1.25) saturate(1);
}

.service-card-body {
  padding: 28px 24px;
}

/* Lighten content images on detail pages */
.service-content img,
.about-image-wrap img {
  filter: brightness(1.18) saturate(0.88);
}

.service-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--purple-700);
  margin-bottom: 16px;
  text-align: center;
}

.service-card-list {
  margin-bottom: 24px;
}

.service-card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.55;
}

.service-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-300));
  border-radius: 50%;
}

.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--purple-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(85, 68, 115, 0.2);
}

.btn-service:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(85, 68, 115, 0.35);
}

.btn-service svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration) var(--ease);
}

.btn-service:hover svg {
  transform: translateX(3px);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-section .about-bg-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.about-section .about-bg-decor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
}

.about-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p:last-of-type {
  margin-bottom: 32px;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--purple-200);
  border-radius: var(--radius);
  z-index: 0;
}

.about-image-wrap::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--purple-100), var(--purple-50));
  border-radius: var(--radius);
  z-index: 0;
}

/* ===== WHY US SECTION ===== */
.why-us {
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-50) 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-700), var(--purple-300));
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}

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

.why-card:hover::after {
  transform: scaleX(1);
}

.why-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--purple-50), var(--purple-100));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}

.why-card:hover .why-icon {
  background: var(--purple-500);
  transform: scale(1.1);
}

.why-icon svg {
  width: 32px;
  height: 32px;
  color: var(--purple-500);
  transition: color var(--duration) var(--ease);
}

.why-card:hover .why-icon svg {
  color: var(--white);
}

.why-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.why-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== CTA / CONTACT SECTION ===== */
.cta-section {
  background: var(--purple-500);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 124, 184, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 165, 216, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section .btn-outline {
  position: relative;
  z-index: 3;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cta-text h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 24px;
}

.cta-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--purple-200);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all var(--duration) var(--ease);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--purple-300);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(168, 124, 184, 0.2);
}

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

.form-group select option {
  background: var(--purple-800);
  color: var(--white);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--white), var(--purple-50));
  color: var(--purple-700);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-family: 'Inter', sans-serif;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* Form success message */
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success.active {
  display: block;
}

.form-success .check-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success .check-circle svg {
  width: 32px;
  height: 32px;
  color: #4ade80;
}

.form-success h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.form-success p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

/* Light form variant for pages */
.form-light {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-light h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
}

.form-light .form-group label {
  color: var(--text-body);
}

.form-light .form-group input,
.form-light .form-group textarea,
.form-light .form-group select {
  background: var(--purple-25);
  border-color: var(--border);
  color: var(--text-heading);
}

.form-light .form-group input::placeholder,
.form-light .form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-light .form-group input:focus,
.form-light .form-group textarea:focus,
.form-light .form-group select:focus {
  border-color: var(--purple-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(107, 58, 125, 0.1);
}

.form-light .form-group select option {
  background: var(--white);
  color: var(--text-heading);
}

.form-light .btn-submit {
  background: var(--purple-500);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(85, 68, 115, 0.25);
}

.form-light .form-success .check-circle {
  background: var(--purple-50);
}

.form-light .form-success .check-circle svg {
  color: var(--purple-500);
}

.form-light .form-success h3 {
  color: var(--text-heading);
}

.form-light .form-success p {
  color: var(--text-muted);
}

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  position: relative;
  padding: 80px 0 60px;
  background: var(--purple-500);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 124, 184, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

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

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
}

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

.breadcrumbs svg {
  width: 14px;
  height: 14px;
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  line-height: 1.7;
}

/* ===== SERVICE DETAIL ===== */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.service-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.service-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--purple-700);
}

.service-content p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.feature-list {
  margin: 20px 0 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-body);
}

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

.feature-list li svg {
  width: 22px;
  height: 22px;
  color: var(--purple-500);
  flex-shrink: 0;
  margin-top: 1px;
}

.service-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-info-card .info-icon {
  width: 52px;
  height: 52px;
  background: var(--purple-50);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card .info-icon svg {
  width: 24px;
  height: 24px;
  color: var(--purple-500);
}

.contact-info-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-card p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-heading);
}

.contact-info-card a {
  color: var(--purple-500);
}

.contact-info-card a:hover {
  color: var(--purple-700);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.map-wrapper img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--purple-500);
  color: rgba(255, 255, 255, 0.9);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo-img {
  height: 80px;
  width: auto;
  max-width: 300px;
  margin-bottom: 24px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-col ul li a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--purple-300);
  transition: width var(--duration) var(--ease);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-col ul li a:hover::before {
  width: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--purple-300);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--purple-500);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--duration) var(--ease);
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ===== LEGAL IMAGES GRID ===== */
.legal-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
.legal-images-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.legal-images-grid img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .legal-images-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .legal-images-grid img {
    height: 220px;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
.mobile-only { display: none !important; }
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .top-bar-logo { height: 55px !important; } /* Make logo larger since there's more space */
}

/* Large tablets */
@media (max-width: 1024px) {
  .hero-title { font-size: 40px; }
  .section-title { font-size: 34px; }

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

  .about-inner {
    gap: 40px;
  }

  .cta-inner {
    gap: 40px;
  }

  .stat-number { font-size: 32px; }
  .stat-label-large { font-size: 20px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .service-detail-grid {
    grid-template-columns: 1fr 320px;
    gap: 32px;
  }

  .logo-img {
    height: 90px;
    max-width: 400px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .top-bar {
    padding: 12px 0;
  }

  .top-bar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .logo-area {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
  }

  /* CSS Logo tablet adjustments */
  .css-logo-text { font-size: 16px; letter-spacing: 0.5px; }
  .css-logo-bar { width: 15px; font-size: 12px; }
  .css-logo-bar:nth-child(1) { height: 22px; }
  .css-logo-bar:nth-child(2) { height: 27px; }
  .css-logo-bar:nth-child(3) { height: 32px; }
  .css-logo-bar:nth-child(4) { height: 37px; }
  .css-logo-bar:nth-child(5) { height: 42px; }

  .top-contacts {
    flex-shrink: 0;
    margin-top: 0;
  }

  /* Nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 28px 28px;
    gap: 0;
    box-shadow: -8px 0 40px rgba(60, 47, 84, 0.15);
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links a {
    padding: 16px 0;
    height: auto;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }

  .nav-links a::after { display: none; }
  .nav-divider { display: none; }

  .nav-cta-link {
    display: flex !important;
    margin: 20px 0 0;
    justify-content: center;
  }

  /* Hide desktop CTA button on mobile */
  .nav-cta-link.desktop-only {
    display: none !important;
  }

  /* Hero */
  .hero { min-height: 440px; }
  .hero-content { padding: 60px 0; }
  .hero-title { font-size: 32px; }
  .hero-text { font-size: 15px; }

  /* Stats */
  .stats-bar { margin-top: -32px; }
  .stats-bar .container {
    grid-template-columns: 1fr;
  }
  .stat-item { padding: 24px 16px; }
  .stat-number { font-size: 28px; }
  .stat-label-large { font-size: 18px; }

  /* Services */
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-text { order: 1; }
  .about-image-wrap { order: 2; max-width: 400px; margin: 0 auto; }
  .about-text h2 { font-size: 30px; }

  /* Why us */
  .why-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }

  /* CTA */
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-text h2 { font-size: 30px; }

  /* Page hero */
  .page-hero h1 { font-size: 32px; }
  .page-hero { padding: 60px 0 40px; }

  /* Service detail */
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-sidebar {
    position: static;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  .footer { padding: 48px 0 20px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-brand .footer-logo-img {
    margin: 0 auto 16px;
  }
  .footer-brand p { max-width: none; }
  .footer-contact-item { justify-content: center; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  /* CSS Logo small phones adjustments */
  .css-logo-text { font-size: 13px; letter-spacing: 0; }
  .css-logo-bar { width: 12px; font-size: 10px; padding-bottom: 2px; }
  .css-logo-bar:nth-child(1) { height: 18px; }
  .css-logo-bar:nth-child(2) { height: 22px; }
  .css-logo-bar:nth-child(3) { height: 26px; }
  .css-logo-bar:nth-child(4) { height: 30px; }
  .css-logo-bar:nth-child(5) { height: 34px; }
  .css-logo { gap: 6px; padding-bottom: 2px; }
  .logo-area { width: 100%; display: flex; align-items: center; }

  .hero-title { font-size: 26px; line-height: 1.2; }
  .hero-text { font-size: 14px; }
  .hero-content { padding: 48px 0; }
  .hero { min-height: 360px; }

  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .section-header { margin-bottom: 40px; }

  .stats-bar .container {
    grid-template-columns: 1fr;
  }
  .stat-number { font-size: 24px; }
  .stat-label { font-size: 12px; }
  .stat-label-large { font-size: 16px; }

  .service-card-body { padding: 20px 18px; }
  .service-card-title { font-size: 20px; }
  .service-card-img { height: 180px; }

  .why-card { padding: 28px 20px; }

  .contact-form,
  .form-light { padding: 28px 20px; }

  .page-hero { padding: 50px 0 30px; }
  .page-hero h1 { font-size: 24px; }
  .page-hero p { font-size: 14px; }

  .btn-outline {
    padding: 14px 28px !important;
    font-size: 14px;
    display: inline-flex !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    text-decoration: none !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .cta-text h2 { font-size: 24px; }

  .footer-brand .footer-logo-img {
    height: 44px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ===== LANGUAGE DROPDOWN ===== */
.lang-switcher {
  position: relative;
  z-index: 1100;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-700);
  transition: all var(--duration) var(--ease);
  user-select: none;
}

.lang-toggle:hover {
  background: var(--purple-100);
  border-color: var(--purple-200);
}

.lang-toggle .globe-icon {
  width: 16px;
  height: 16px;
  color: var(--purple-500);
  flex-shrink: 0;
}

.lang-toggle .chevron-icon {
  width: 14px;
  height: 14px;
  color: var(--purple-400);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
}

.lang-switcher.open .lang-toggle .chevron-icon {
  transform: rotate(180deg);
}

.lang-switcher.open .lang-toggle {
  background: var(--purple-100);
  border-color: var(--purple-300);
  box-shadow: 0 0 0 3px rgba(107, 58, 125, 0.1);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: all 0.25s var(--ease);
  overflow: hidden;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-switcher.mobile-only .lang-dropdown {
  left: 0;
  right: auto;
  transform-origin: top left;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.lang-option:hover {
  background: var(--purple-50);
  color: var(--purple-700);
}

.lang-option.active {
  background: linear-gradient(135deg, var(--purple-50), var(--purple-100));
  color: var(--purple-700);
  font-weight: 600;
}

.lang-option .lang-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.lang-option .lang-name {
  flex: 1;
}

.lang-option .lang-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lang-option.active .lang-check {
  width: 16px;
  height: 16px;
  color: var(--purple-500);
}

/* Lang dropdown responsive */
@media (max-width: 768px) {
  .lang-toggle {
    padding: 7px 12px;
    font-size: 12px;
  }

  .lang-dropdown {
    min-width: 160px;
    right: 0;
    left: auto;
  }
}

@media (max-width: 480px) {
  .lang-dropdown {
    right: 0;
    left: auto;
    min-width: 150px;
  }
}

/* ===== BLOG STYLES ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

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

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-page);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease);
}

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

.blog-card-content {
  padding: 56px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body {
  padding: 56px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 16px;
  line-height: 1.5;
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.blog-card h3 a:hover {
  color: var(--purple-600);
}

.blog-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
}

.blog-read-more {
  display: inline-block;
  color: var(--purple-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color var(--duration) var(--ease);
}

.blog-read-more:hover {
  color: var(--purple-700);
}

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

/* ===== BLOG CAROUSEL ===== */
.blog-carousel-section {
  background: linear-gradient(135deg, #f8f7ff 0%, #f0e8ff 100%);
}

.blog-carousel {
  position: relative;
  overflow: visible;
  margin: 48px 0;
  padding: 0 80px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  /* Hide scrollbar */
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.blog-carousel-item {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 320px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.blog-carousel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.carousel-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.carousel-item-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 220px;
}

.carousel-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-item-description {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.carousel-item-link {
  color: var(--purple-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: color 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.carousel-item-link:hover {
  color: var(--purple-700);
}

.carousel-item-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.carousel-item-link:hover svg {
  transform: translateX(4px);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  color: var(--text-heading);
}

.carousel-nav:hover {
  background: var(--purple-600);
  color: white;
  border-color: var(--purple-600);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.carousel-prev {
  left: -60px;
}

.carousel-next {
  right: -60px;
}

.carousel-nav svg {
  width: 24px;
  height: 24px;
}

.blog-cta {
  text-align: center;
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .blog-carousel {
    padding: 0 60px;
  }

  .blog-carousel-item {
    flex: 0 0 calc(50% - 12px);
  }

  .carousel-prev {
    left: -50px;
  }

  .carousel-next {
    right: -50px;
  }
}

@media (max-width: 768px) {
  .blog-carousel {
    padding: 0 50px;
  }

  .blog-carousel-item {
    flex: 0 0 calc(100% - 0px);
  }

  .carousel-item-body {
    height: auto;
    padding: 24px;
  }

  .carousel-prev {
    left: -40px;
  }

  .carousel-next {
    right: -40px;
  }

  .blog-carousel-section {
    padding: 40px 0;
  }
}
