/* PARALLAX MAIN BUNDLE - All CSS combined */


/* === css/design-system.css === */
/* ============================================
   PARALLAX DESIGN SYSTEM v2.0
   Comprehensive Design System with Components
   ============================================ */

/* ============================================
   1. CSS VARIABLES & THEME SYSTEM
   ============================================ */
:root {
  /* Brand Colors */
  --color-primary: #686EEE;
  --color-primary-rgb: 104, 110, 238;
  --color-primary-hover: #5659d7;
  --color-secondary: #8B5CF6;
  --color-accent: #7C7FFF;
  
  /* Neutral Colors - Light Theme */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fc;
  --color-bg-tertiary: #f3f4f8;
  --color-text-primary: #1a1a2e;
  --color-text-secondary: #5a5a6e;
  --color-text-muted: #9a9aae;
  
  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(104, 110, 238, 0.1);
  --glass-blur: 20px;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #686EEE 0%, #8B5CF6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(104, 110, 238, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  --gradient-dark: linear-gradient(180deg, rgba(10, 10, 20, 0.95) 0%, rgba(10, 10, 20, 0.7) 100%);
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(104, 110, 238, 0.15);
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  
  /* Typography Scale */
  --font-xs: 11px;
  --font-sm: 13px;
  --font-base: 16px;    /* INCREASED from 15px */
  --font-lg: 18px;
  --font-xl: 24px;
  --font-2xl: 32px;
  --font-3xl: 48px;
  --font-4xl: 64px;
  
  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 900;
  
  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-spring: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
  --z-popover: 50;
  --z-tooltip: 60;
  --z-notification: 70;
  
  /* Breakpoints (for reference) */
  --breakpoint-xs: 480px;
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --color-bg-primary: #0a0a14;
  --color-bg-secondary: #0f0f1a;
  --color-bg-tertiary: #14141f;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.5);
  --glass-bg: rgba(10, 10, 20, 0.8);
  --glass-border: rgba(104, 110, 238, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(104, 110, 238, 0.25);
}

/* ============================================
   2. GLOBAL RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  max-width: 100%;
  overscroll-behavior-x: none;
}

/* AUTOMATIC 90% SCALING FOR MAC/HIGH-DPI DISPLAYS */
/* Method 1: Font-size based scaling - DESKTOP ONLY */
@media (-webkit-min-device-pixel-ratio: 2) and (min-width: 1025px), (min-resolution: 192dpi) and (min-width: 1025px) {
  html {
    font-size: 14.4px; /* 90% of 16px */
  }
}

/* Method 2: Direct zoom for high-DPI displays (more aggressive) */
/* DISABLED on mobile - zoom causes horizontal overflow on iOS */
@media (-webkit-min-device-pixel-ratio: 2) and (min-width: 1025px), (min-resolution: 192dpi) and (min-width: 1025px) {
  body {
    zoom: 0.9; /* Direct 90% zoom - works on Mac Safari, Chrome */
  }
}

/* Fine-tune for very high-DPI displays */
@media (-webkit-min-device-pixel-ratio: 3) and (min-width: 1025px), (min-resolution: 288dpi) and (min-width: 1025px) {
  html {
    font-size: 14.4px;
  }
  body {
    zoom: 0.9;
  }
}

/* Additional viewport-based scaling for large desktop screens */
@media (min-width: 1920px) and (-webkit-min-device-pixel-ratio: 2) {
  html {
    font-size: 14.4px; /* Maintain 90% on large high-DPI displays */
  }
}

/* Ensure consistent scaling on standard displays */
@media (min-width: 1440px) and (-webkit-max-device-pixel-ratio: 1.5) {
  html {
    font-size: 16px; /* Keep 100% on standard DPI displays */
  }
  body {
    zoom: 1; /* Reset zoom to 100% on standard displays */
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  overflow-x: hidden;
  transition: background-color var(--transition-base);
}

/* ============================================
   3. TYPOGRAPHY UTILITIES
   ============================================ */
.text-xs { font-size: var(--font-xs); }
.text-sm { font-size: var(--font-sm); }
.text-base { font-size: var(--font-base); }
.text-lg { font-size: var(--font-lg); }
.text-xl { font-size: var(--font-xl); }
.text-2xl { font-size: var(--font-2xl); }
.text-3xl { font-size: var(--font-3xl); }
.text-4xl { font-size: var(--font-4xl); }

.font-light { font-weight: var(--weight-light); }
.font-regular { font-weight: var(--weight-regular); }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }
.font-black { font-weight: var(--weight-black); }

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

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

/* ============================================
   5. SPACING UTILITIES
   ============================================ */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

.px-xs { padding-left: var(--space-xs); padding-right: var(--space-xs); }
.px-sm { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-xl { padding-left: var(--space-xl); padding-right: var(--space-xl); }

.py-xs { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* ============================================
   6. RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 1280px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
  .md\:flex-col { flex-direction: column; }
  .md\:gap-md { gap: var(--space-md); }
  .md\:text-center { text-align: center; }
}

@media (max-width: 480px) {
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
  .sm\:flex-col { flex-direction: column; }
  .sm\:gap-sm { gap: var(--space-sm); }
  .sm\:text-sm { font-size: var(--font-sm); }
}

/* ============================================
   7. COMPONENT UTILITIES
   ============================================ */
.card {
  background: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  border: 2px solid transparent;
}

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

/* Hover removed - only hero buttons should animate */

.btn-secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading states */
.skeleton {
  background: linear-gradient(90deg, 
    var(--color-bg-tertiary) 25%, 
    var(--color-bg-secondary) 50%, 
    var(--color-bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Focus states */
.focus-visible:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Disabled states */
.disabled,
:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn var(--transition-base);
}

.animate-slide-up {
  animation: slideUp var(--transition-base);
}

.animate-scale {
  animation: scale var(--transition-base);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* === css/components.css === */
/* ============================================
   PARALLAX COMPONENTS
   All component styles using the design system
   ============================================ */

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1440px;
  padding: 16px 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-center {
  display: flex;
  gap: var(--space-xl);
}

.nav-item {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: var(--weight-medium);
  transition: color var(--transition-base);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-weight: var(--weight-bold);
  font-size: var(--font-lg);
  color: var(--color-text-primary);
}

.logo-img {
  height: 32px;
  width: auto;
  transition: fill var(--transition-base);
}

/* Logo adjustment for dark mode - make text white, keep circles blue */
[data-theme="dark"] .logo-img .logo-text {
  fill: #ffffff;
}

/* Footer logo - keep icon blue, make text white in dark mode */
.footer-logo {
  height: 30px;
  width: auto;
}

[data-theme="dark"] .footer-logo .footer-logo-text {
  fill: #ffffff;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--color-text-secondary);
}

.social-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.social-btn.whatsapp-btn:hover {
  background: #25D366;
  border-color: #25D366;
  color: white;
}

.social-btn.telegram-btn:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: white;
}

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

/* Language Toggle Button */
.language-toggle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.language-toggle:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Calculator Button Specific Styles */
.calculator-btn {
  text-decoration: none;
}

.calculator-btn.active {
  background: var(--color-primary) !important;
  color: white !important;
  border-color: var(--color-primary) !important;
}

/* Search Button Link */
.search-btn {
  text-decoration: none;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--color-text-secondary);
}

.theme-toggle:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
}

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

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

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

/* ============================================
   SECTIONS AS CARDS - MODERN GLASS
   ============================================ */
.section-card {
  /* max-width and margin handled by width-consistency-fix.css */
  padding: 40px 48px; /* Will be overridden by width-consistency-fix.css */
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .section-card {
  background: rgba(15, 15, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Section Headers - Improved Typography */
.section-header {
  margin-bottom: 32px;
  text-align: center;
}

.section-header.centered {
  text-align: center;
}

.section-eyebrow {
  font-size: var(--font-label-sm); /* Responsive 11px -> 10px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-widest);
  color: var(--color-primary);
  margin-bottom: 12px;
  opacity: 0.9;
}

.section-title {
  font-size: var(--font-display-3); /* Responsive 40px -> 32px -> 24px -> 22px */
  font-weight: 900;
  color: var(--color-text-primary);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-tight);
}

.section-title .text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns, equal width */
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.service-card {
  background: rgba(104, 110, 238, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(104, 110, 238, 0.15);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(104, 110, 238, 0.08);
}

/* Background images for each card */
.service-card[data-service="business"] {
  background-image: linear-gradient(rgba(10, 10, 20, 0.75), rgba(10, 10, 20, 0.75)), 
                    url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=800&q=80');
}

.service-card[data-service="personal"] {
  background-image: linear-gradient(rgba(10, 10, 20, 0.75), rgba(10, 10, 20, 0.75)), 
                    url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=800&q=80');
}

.service-card[data-service="ecommerce"] {
  background-image: linear-gradient(rgba(10, 10, 20, 0.75), rgba(10, 10, 20, 0.75)), 
                    url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800&q=80');
}

.service-card[data-service="remote"] {
  background-image: linear-gradient(rgba(10, 10, 20, 0.75), rgba(10, 10, 20, 0.75)), 
                    url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=800&q=80');
}

[data-theme="light"] .service-card {
  background: rgba(104, 110, 238, 0.03);
  border-color: rgba(104, 110, 238, 0.2);
}

[data-theme="light"] .service-card[data-service="business"] {
  background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                    url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=800&q=80');
}

[data-theme="light"] .service-card[data-service="personal"] {
  background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                    url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=800&q=80');
}

[data-theme="light"] .service-card[data-service="ecommerce"] {
  background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                    url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800&q=80');
}

[data-theme="light"] .service-card[data-service="remote"] {
  background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                    url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=800&q=80');
}

[data-theme="dark"] .service-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Light mode - darker text for lighter overlays */
[data-theme="light"] .service-content h3 {
  color: var(--color-text-primary);
}

[data-theme="light"] .service-content p {
  color: var(--color-text-secondary);
}

[data-theme="light"] .service-card .btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

[data-theme="light"] .service-card .btn-outline:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(104, 110, 238, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(104, 110, 238, 0.2);
  border-color: rgba(104, 110, 238, 0.25);
}

[data-theme="dark"] .service-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: var(--font-heading-3); /* Responsive 24px -> 22px -> 20px -> 18px */
  font-weight: 800;
  margin-bottom: 16px;
  color: white;
  position: relative;
  z-index: 2;
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-heading);
}

.service-content p {
  font-size: var(--font-body-base); /* Responsive 15px -> 14px -> 13px */
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  flex: 1;
  position: relative;
  z-index: 2;
}

/* Adjust button styling for image backgrounds */
.service-card .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  position: relative;
  z-index: 2;
}

.service-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.service-icons {
  display: none; /* Removed emoji icons */
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-container {
  margin-top: var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.faq-category {
  background: rgba(104, 110, 238, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(104, 110, 238, 0.1);
  border-radius: 24px;
  padding: 24px 16px; /* Minimal horizontal padding */
  box-shadow: 0 4px 16px rgba(104, 110, 238, 0.06);
  transition: all 0.3s ease;
}

[data-theme="dark"] .faq-category {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.faq-category:hover {
  box-shadow: 0 8px 24px rgba(104, 110, 238, 0.1);
}

[data-theme="dark"] .faq-category:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.faq-category-title {
  font-size: var(--font-heading-3); /* Responsive 24px -> 22px -> 20px -> 18px */
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 20px; /* Reduced from 24px */
  padding-bottom: 12px; /* Reduced from 16px */
  border-bottom: 1px solid rgba(104, 110, 238, 0.1);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-heading);
}

[data-theme="dark"] .faq-category-title {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--font-heading-5); /* Responsive 18px -> 16px -> 15px */
  font-weight: 600;
  color: var(--color-text-primary);
  transition: all 0.3s ease;
  gap: 16px;
  line-height: var(--line-height-heading);
}

.faq-question:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.faq-question span {
  flex: 1;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--color-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  /* No padding needed - using margin on paragraph instead */
}

.faq-answer p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--font-base); /* 15px - matches visa descriptions */
  margin: 0 0 16px 0; /* No top margin, 16px bottom margin */
}

/* ============================================
   BUTTONS - MODERN
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(104, 110, 238, 0.3);
  letter-spacing: -0.1px;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(104, 110, 238, 0.4);
  transform: translateY(-2px);
}

.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(104, 110, 238, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(104, 110, 238, 0.2);
  border-radius: 16px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(104, 110, 238, 0.1);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(104, 110, 238, 0.3);
  border-color: var(--color-primary);
}

.btn-outline.dark {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
}

.btn-outline.dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   SLOGAN SECTION - ENHANCED TYPOGRAPHY
   ============================================ */
.slogan-section {
  padding-top: 36px !important; /* Reduced by 10% from 40px */
  padding-bottom: 36px !important; /* Reduced by 10% from 40px */
  text-align: center;
  margin-top: 54px !important; /* Reduced by 10% from 60px */
}

.slogan-wrapper {
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  min-height: 60px; /* Ensure consistent height */
}

.slogan-title {
  font-size: clamp(22px, 3.5vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  white-space: nowrap;
  transition: opacity 0.4s ease, transform 0.4s ease;
  letter-spacing: -0.5px;
  position: relative;
  transition: opacity 0.3s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

/* Slogan exit animation - slide left with trail */
.slogan-title.slide-out {
  animation: slideOutLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  30% {
    opacity: 0.7;
  }
  60% {
    opacity: 0.3;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Slogan enter animation - slide in from right */
.slogan-title.slide-in {
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  40% {
    opacity: 0.3;
  }
  70% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slogan-subtitle {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================
   CATEGORY BUTTONS
   ============================================ */
.category-buttons-section {
  padding-top: 40px !important;
  padding-bottom: 0 !important;
}

.category-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.category-btn {
  text-decoration: none;
  color: inherit;
  padding: 12px 32px;
  min-width: 140px;
  text-align: center;
  background: rgba(104, 110, 238, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(104, 110, 238, 0.15);
  border-radius: 16px;
  color: var(--color-text-secondary);
  font-weight: 700; /* Changed from 600 to 700 for bold text */
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(104, 110, 238, 0.08);
}

[data-theme="dark"] .category-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.category-btn:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(104, 110, 238, 0.3);
}

.category-btn.active {
  background: var(--gradient-primary) !important;
  color: white !important;
  border-color: transparent !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(104, 110, 238, 0.4) !important;
}

.category-btn.active:hover {
  box-shadow: 0 8px 20px rgba(104, 110, 238, 0.5) !important;
}

/* Category Content Containers */
.category-content {
  height: 0; overflow: hidden; opacity: 0; position: absolute; pointer-events: none;
}

.category-content.active { height:auto; overflow:visible; opacity:1; position:relative; pointer-events:auto;
  display: block !important;
}

/* ВИЗЫ Hero Content */
.hero-vizy-content {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.vizy-title {
  font-size: var(--font-4xl);
  font-weight: var(--weight-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-lg);
}

.vizy-description {
  font-size: var(--font-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Visa Pricing Lists */
.visa-region {
  margin-bottom: var(--space-xl);
  margin-top: var(--space-lg);
}

.visa-region:first-child {
  margin-top: 0;
}

.visa-region-title {
  font-size: var(--font-heading-3); /* Responsive 24px -> 22px -> 20px -> 18px */
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: none; /* Removed border */
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  text-align: center;
  letter-spacing: 1.5px;
  line-height: var(--line-height-heading);
}

.visa-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.visa-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  scroll-margin-top: 120px; /* Offset for fixed navbar - works in Safari */
}

.visa-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.visa-info {
  flex: 1;
}

.visa-info h4 {
  font-size: var(--font-heading-5); /* Responsive 18px -> 16px -> 15px */
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  line-height: var(--line-height-heading);
}

.visa-info p {
  font-size: var(--font-body-base); /* Responsive 15px -> 14px -> 13px */
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}

.visa-price {
  flex-shrink: 0;
  font-size: var(--font-price-base); /* Responsive 20px -> 18px -> 16px */
  font-weight: var(--weight-regular);
  color: var(--color-primary);
  white-space: nowrap;
  padding: 10px 22px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border-radius: 12px;
  align-self: center;
  line-height: 1.4;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline-container {
  position: relative;
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 80px; /* Proper spacing between items (no overlap) */
  position: relative;
  z-index: 1;
}

/* Increase z-index for each subsequent item */
.timeline-item:nth-child(2) { z-index: 2; }
.timeline-item:nth-child(3) { z-index: 3; }
.timeline-item:nth-child(4) { z-index: 4; }
.timeline-item:nth-child(5) { z-index: 5; }
.timeline-item:nth-child(6) { z-index: 6; }

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item.left {
  justify-content: flex-end;
  padding-right: calc(50% + 80px); /* Space for connector line and dot */
}

.timeline-item.right {
  justify-content: flex-start;
  padding-left: calc(50% + 80px); /* Space for connector line and dot */
}

/* Content without card styling */
.timeline-content {
  position: relative;
  max-width: 420px;
  padding: 0;
  background: transparent;
  border: none;
  transition: all var(--transition-base);
}

/* Connector line from content to timeline dot - REMOVED */
.timeline-content::before {
  display: none; /* Hide horizontal connector lines */
}

.timeline-content:hover {
  transform: translateY(-4px);
}

/* Number badge - hidden */
.timeline-number {
  display: none;
}

.timeline-content h3 {
  font-size: var(--font-heading-3); /* Responsive 24px -> 22px -> 20px -> 18px */
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
  line-height: var(--line-height-heading);
}

.timeline-content p {
  font-size: var(--font-body-base); /* Responsive 15px -> 14px -> 13px */
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

/* Timeline dots - aligned with heading text */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 3px; /* Center of dot (8px) aligns with center of h3 text (~11px) */
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border: 4px solid var(--color-bg-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 4px rgba(104, 110, 238, 0.2);
  z-index: 10;
  transition: all var(--transition-base);
}

[data-theme="dark"] .timeline-dot {
  border-color: #0a0a14;
  box-shadow: 0 0 0 4px rgba(104, 110, 238, 0.3);
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 0 6px rgba(104, 110, 238, 0.3);
}

/* ============================================
   FLAGS SECTION
   ============================================ */
.flags-section {
  padding: 40px 0; /* Standardized spacing */
  overflow: hidden;
}

.flags-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  /* Isolate from scroll to prevent animation jumping */
  contain: layout style paint;
  isolation: isolate;
}

.flags-track {
  display: flex;
  gap: 40px;
  /* Pure CSS animation - GPU accelerated, won't stutter on mobile scroll */
  animation: flagScroll 40s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes flagScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-2400px); /* 20 flags * 120px (80px + 40px gap) */
  }
}

/* Mobile adjustments for flags */
@media (max-width: 768px) {
  .flags-track {
    /* Slightly faster on mobile */
    animation-duration: 30s;
  }
}

.flag-item {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
  cursor: pointer;
  position: relative;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.flag-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.flag-item:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.flag-item:hover::after {
  opacity: 1;
}

.flag-item:active {
  transform: scale(1.05);
}

.flag-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  pointer-events: none; /* Let clicks pass through to parent flag-item */
  user-select: none;
  -webkit-user-drag: none;
}

/* CONTACT SECTION */
.contact-section {
  /* padding handled by width-consistency-fix.css */
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

[data-theme="dark"] .contact-section {
  background: rgba(15, 15, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.contact-content h2 {
  font-size: var(--font-heading-1);
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.contact-content h2 .text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-content > p {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.contact-info p {
  font-size: var(--font-body-base) !important; /* 15px → 14px → 13px - matches FAQ answer */
  line-height: 1.7; /* Matches FAQ answer */
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.phone-number {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.5px;
}

.phone-number:hover {
  color: var(--color-primary-dark, #5a5dc7);
  transform: translateX(4px);
}

.contact-email {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.5px;
}

.contact-email:hover {
  color: var(--color-primary-dark, #5a5dc7);
  transform: translateX(4px);
}

.contact-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(104, 110, 238, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(104, 110, 238, 0.15);
  border-radius: 16px;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 150px;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(104, 110, 238, 0.08);
  text-decoration: none;
}

[data-theme="dark"] .contact-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.contact-btn svg {
  width: 20px;
  height: 20px;
}

.contact-btn.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.contact-btn.telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.4);
}

.contact-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #e6683c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.4);
}

/* 3D Earth Model Container */
.contact-3d-model {
  width: 100%;
  height: 350px; /* Reduced from 500px (30% less) */
  position: relative;
  display: none; /* Hidden by default (mobile) */
  border-radius: 20px;
  overflow: hidden;
}

.contact-3d-model model-viewer {
  width: 100%;
  height: 100%;
  display: block;
}

/* Show on desktop only */
@media (min-width: 992px) {
  .contact-3d-model {
    display: block;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Manager Card - Modern Glass */
.contact-card {
  background: rgba(104, 110, 238, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(104, 110, 238, 0.15);
  border-radius: 28px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(104, 110, 238, 0.12);
}

/* COMPACT VERSION - More streamlined design */
.contact-card-compact {
  padding: 28px 24px;
  max-width: 320px;
}

[data-theme="light"] .contact-card {
  background: rgba(104, 110, 238, 0.04);
  border-color: rgba(104, 110, 238, 0.12);
}

[data-theme="dark"] .contact-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(104, 110, 238, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(104, 110, 238, 0.2);
  border-color: rgba(104, 110, 238, 0.25);
}

[data-theme="dark"] .contact-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.contact-card:hover::before {
  opacity: 1;
}

.expert-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  background: var(--gradient-primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(104, 110, 238, 0.4);
}

.expert-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(104, 110, 238, 0.15);
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(104, 110, 238, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compact version - smaller photo */
.contact-card-compact .expert-photo {
  width: 140px;
  height: 140px;
  margin-bottom: 16px;
  border-width: 4px;
}

[data-theme="dark"] .expert-photo {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.contact-card:hover .expert-photo {
  transform: scale(1.05);
  border-color: var(--color-primary);
  box-shadow: 0 16px 48px rgba(104, 110, 238, 0.3);
}

.contact-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* Compact version - smaller title */
.contact-card-compact h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.online-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Compact version - smaller spacing */
.contact-card-compact .online-status {
  padding: 6px 12px;
  font-size: 12px;
  margin-bottom: 16px;
}

.online-status svg {
  width: 16px;
  height: 16px;
  animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.btn-chat {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(104, 110, 238, 0.3);
}

.btn-chat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(104, 110, 238, 0.5);
}

.btn-chat svg {
  width: 18px;
  height: 18px;
}

/* Compact version - smaller button */
.contact-card-compact .btn-chat {
  padding: 12px 24px;
  font-size: 14px;
}

/* ============================================
   FOOTER - MODERN GLASS
   ============================================ */
footer {
  /* max-width and margin handled by width-consistency-fix.css */
  padding: 40px 48px; /* Will be overridden by width-consistency-fix.css */
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

[data-theme="dark"] footer {
  background: rgba(15, 15, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.footer-content {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(104, 110, 238, 0.1);
}

[data-theme="dark"] .footer-content {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col-brand {
  gap: 10px;
  align-items: flex-start;
}

.footer-col:nth-child(2) {
  align-items: center;
  text-align: center;
}

.footer-col:nth-child(3) {
  align-items: flex-end;
  text-align: right;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  opacity: 0.9;
}

.footer-col p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.footer-col a {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-logo {
  height: 36px;
  width: auto;
  transition: filter var(--transition-base);
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* (footer-social removed - no longer used) */

/* footer-info-group removed - replaced by footer-col */

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
  opacity: 0.8;
}

/* Mobile Footer Improvements */
@media (max-width: 768px) {
  .footer-content {
    padding-bottom: 18px;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-col-brand {
    align-items: center;
  }

  .footer-col:nth-child(2) {
    align-items: center;
    text-align: center;
  }

  .footer-col:nth-child(3) {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding-bottom: 14px;
  }
  
  .footer-main {
    gap: 24px;
  }
  
  .footer-bottom {
    padding-top: 14px;
  }
}

/* === css/width-consistency-fix.css === */
/* ============================================
   WIDTH CONSISTENCY FIX FOR ALL SECTIONS
   Ensures hero, footer, FAQ, and contact sections
   have matching widths across all screen sizes
   ============================================ */

/* ============================================
   RESET CONFLICTING STYLES
   Remove different max-widths and padding approaches
   ============================================ */

/* Remove direct max-width from hero-section */
.hero-section {
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: auto !important;
}

/* Remove direct max-width and padding from footer */
footer,
footer.footer {
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove direct max-width from section-card */
.section-card {
    max-width: none !important;
}

/* ============================================
   UNIFIED WIDTH SYSTEM
   All sections use the same width logic
   ============================================ */

/* Create a consistent wrapper for all major sections */
.hero-section,
footer.footer,
.section-card,
.contact-section,
.calculator-box-section {
    max-width: 1440px !important;
    margin: 44px auto !important;
    padding: 40px 48px !important;
    width: calc(100% - 80px) !important;
    box-sizing: border-box !important;
}

/* Special handling for hero to preserve its unique styling */
.hero-section {
    padding: 0 !important; /* Hero has its own internal padding */
    width: calc(100% - 80px) !important;
    height: 600px; /* Preserve hero height */
}

/* Calculator box section alignment - remove padding as it has internal padding in .calculator-box */
.calculator-box-section {
    padding: 0 !important;
    width: calc(100% - 80px) !important;
}

/* Prevent double padding from container inside sections */
.section-card .container,
.contact-section .container,
footer.footer .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* FAQ and Contact sections that use section-card class */
.faq-section.section-card,
.contact-section.section-card {
    /* Already inherits from .section-card above */
}

/* ============================================
   RESPONSIVE ADJUSTMENTS - TABLET (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .hero-section,
    footer.footer,
    .section-card,
    .contact-section,
    .calculator-box-section {
        width: calc(100% - 40px) !important;
        margin: 34px auto !important;
        padding: 40px 32px !important;
    }
    
    .hero-section {
        padding: 0 !important;
        height: 550px;
    }
    
    .calculator-box-section {
        padding: 0 !important;
        width: calc(100% - 40px) !important;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS - MOBILE (480px - 768px)
   ============================================ */
@media (max-width: 768px) {
    .hero-section,
    footer.footer,
    .section-card,
    .contact-section,
    .calculator-box-section {
        width: calc(100% - 32px) !important;
        margin: 30px auto !important;
        padding: 40px 24px !important;
    }
    
    .hero-section {
        padding: 0 !important;
        height: 495px;
    }
    
    .calculator-box-section {
        padding: 0 !important;
        width: calc(100% - 32px) !important;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS - SMALL MOBILE (<480px)
   ============================================ */
@media (max-width: 480px) {
    .hero-section,
    footer.footer,
    .section-card,
    .contact-section,
    .calculator-box-section {
        width: calc(100% - 24px) !important;
        margin: 25px auto !important;
        padding: 32px 16px !important;
    }
    
    .hero-section {
        padding: 0 !important;
        height: 440px;
    }
    
    .calculator-box-section {
        padding: 0 !important;
        width: calc(100% - 24px) !important;
    }
}

/* ============================================
   SPECIAL ADJUSTMENTS
   ============================================ */

/* Slogan and category buttons sections */
.slogan-section,
.category-buttons-section {
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 48px !important;
    padding-right: 48px !important;
}

@media (max-width: 1024px) {
    .slogan-section,
    .category-buttons-section {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}

@media (max-width: 768px) {
    .slogan-section,
    .category-buttons-section {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (max-width: 480px) {
    .slogan-section,
    .category-buttons-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Ensure all container divs respect parent padding */
.container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ============================================
   DEBUG HELPERS
   Uncomment to visualize section boundaries
   ============================================ */
/*
.hero-section {
    border: 2px solid red !important;
}

footer.footer {
    border: 2px solid blue !important;
}

.section-card {
    border: 2px solid green !important;
}

.calculator-box-section {
    border: 2px solid orange !important;
}
*/

/* === css/responsive.css === */
/* ============================================
   PARALLAX RESPONSIVE STYLES
   Mobile-first responsive design fixes
   ============================================ */

/* ============================================
   TABLET STYLES (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
  /* Navigation adjustments */
  nav {
    width: calc(100% - 40px);
  }
  
  /* Slogan section - tablet */
  .slogan-section {
    padding-top: 32px !important; /* Reduced by 10% from 35px */
    padding-bottom: 32px !important;
    margin-top: 54px !important; /* Reduced by 10% from 60px */
  }
  
  /* Category buttons - tablet */
  .category-buttons-section {
    padding-top: 35px !important;
    padding-bottom: 0 !important;
  }

  /* Section cards */
  .section-card {
    /* margin and padding handled by width-consistency-fix.css */
    /* padding: 60px 40px; removed */
  }

  /* Calculator box */
  .calculator-box-section {
    /* margin handled by width-consistency-fix.css */
  }

  /* Hero section */
  .hero-section {
    /* margin and height handled by width-consistency-fix.css */
  }

  /* Service cards grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* Keep 2 columns on tablet */
    gap: var(--space-md);
  }

  .service-card {
    min-height: 300px;
  }

  /* FAQ responsive */
  .faq-category {
    padding: 20px 28px; /* Reduced vertical padding, kept horizontal */
  }

  .faq-category-title {
    font-size: var(--font-heading-3); /* Uses responsive variable */
  }

  .faq-question {
    font-size: var(--font-heading-5); /* Uses responsive variable */
    padding: var(--space-md) 0;
  }

  /* Timeline adjustments */
  .timeline-item {
    margin-bottom: 60px; /* Proper spacing on tablet */
  }

  .timeline-item:last-child {
    margin-bottom: 0;
  }

  .timeline-item.left,
  .timeline-item.right {
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
    top: 3px; /* Center of dot (8px) aligns with center of h3 text (~11px) */
  }

  /* Adjust connector line for single column - REMOVED */
  .timeline-content::before {
    display: none !important; /* Hide horizontal connector lines on mobile */
  }

  /* Contact section tablet */
  .contact-grid {
    gap: var(--space-2xl);
  }

  .expert-photo {
    width: 180px;
    height: 180px;
  }
}

/* ============================================
   MOBILE STYLES (480px - 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Navigation */
  nav {
    width: calc(100% - 32px);
    padding: 12px 20px;
    top: 10px;
    gap: 24px;
  }
  
  .nav-right {
    gap: 8px;
  }

  .nav-center {
    display: none;
  }

  .hamburger {
    display: none; /* Hide hamburger button on mobile */
  }

  .info-btn {
    display: none; /* Hide info button on mobile */
  }

  .social-btn,
  .theme-toggle,
  .language-toggle {
    width: 38px;
    height: 38px;
  }

  .logo-img {
    height: 28px; /* Slightly smaller on tablets */
  }

  /* Typography scale down */
  .section-title {
    font-size: var(--font-heading-1); /* Uses responsive variable */
  }

  .slogan-title {
    font-size: var(--font-display-1); /* Uses responsive variable: 32px on mobile */
  }
  
  .slogan-section {
    padding-top: 27px !important; /* Reduced by 10% from 30px */
    padding-bottom: 27px !important;
    margin-top: 36px !important; /* Reduced by 10% from 40px */
  }
  
  /* Category buttons - mobile */
  .category-buttons-section {
    padding-top: 30px !important;
    padding-bottom: 0 !important;
  }
  
  .slogan-subtitle {
    font-size: clamp(13px, 1.6vw, 16px);
  }

  /* Section cards */
  .section-card {
    /* margin and padding handled by width-consistency-fix.css */
    border-radius: var(--radius-xl);
  }

  /* Calculator box */
  .calculator-box-section {
    /* margin handled by width-consistency-fix.css */
  }

  /* Hero section */
  .hero-section {
    /* margin and height handled by width-consistency-fix.css */
    border-radius: var(--radius-xl);
  }

  /* CRITICAL FIX: Service cards mobile centering */
  .services-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: var(--space-md);
    padding: 0 var(--space-md);
  }

  .service-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto; /* Centers the card */
    padding: var(--space-lg);
    min-height: 280px;
  }

  .service-content h3 {
    font-size: var(--font-heading-3); /* Uses responsive variable */
  }

  .service-content p {
    font-size: var(--font-body-base); /* Uses responsive variable */
  }

  /* FAQ mobile */
  .faq-container {
    gap: var(--space-xl);
  }

  .faq-category {
    padding: 16px 24px; /* Reduced vertical padding, kept horizontal */
  }

  .faq-category-title {
    font-size: var(--font-heading-3); /* Uses responsive variable */
    margin-bottom: 16px; /* Reduced spacing */
  }

  .faq-question {
    font-size: var(--font-heading-5); /* Uses responsive variable */
    padding: var(--space-sm) 0;
  }

  .faq-icon {
    width: 18px;
    height: 18px;
  }

  .faq-answer p {
    font-size: var(--font-body-base); /* Uses responsive variable */
  }

  /* Category buttons */
  .category-buttons {
    justify-content: center;
    padding: 0 var(--space-md);
    gap: var(--space-sm);
  }

  .category-btn {
    padding: 9px 16px;
    font-size: var(--font-sm);
    min-width: 100px;
  }
  
  .category-buttons-section {
    padding-top: 30px;
    padding-bottom: 0;
  }

  /* Timeline mobile layout */
  .timeline-container {
    padding: var(--space-xl) 0;
  }

  .timeline-line {
    left: 16px;
  }

  .timeline-item {
    margin-bottom: 50px; /* Proper spacing on mobile */
  }

  .timeline-item:last-child {
    margin-bottom: 0;
  }

  .timeline-item.left,
  .timeline-item.right {
    padding-left: 50px;
    padding-right: var(--space-md);
    align-items: flex-start;
  }

  .timeline-content {
    max-width: 100%;
  }

  /* Mobile connector line - REMOVED */
  .timeline-content::before {
    display: none !important; /* Hide horizontal connector lines on mobile */
  }

  .timeline-dot {
    left: 16px;
    top: 3px; /* Center of dot (8px) aligns with center of h3 text (~11px) */
  }

  .timeline-number {
    display: none;
  }

  .timeline-number {
    font-size: var(--font-heading-4); /* Uses responsive variable */
  }

  .timeline-content h3 {
    font-size: var(--font-heading-3); /* Uses responsive variable */
  }

  .timeline-content p {
    font-size: var(--font-body-base); /* Uses responsive variable */
  }

  /* Contact section mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-content {
    text-align: center;
  }

  .phone-number {
    font-size: var(--font-xl);
    display: block;
  }

  .contact-buttons {
    justify-content: center;
  }

  .contact-btn {
    min-width: 200px;
  }

  .contact-card {
    padding: var(--space-xl);
  }

  .expert-photo {
    width: 180px;
    height: 180px;
  }

  /* Flags section */
  .flags-box {
    padding: 20px 0;
  }

  .flag-item {
    width: 60px;
    height: 45px;
  }

  /* Buttons mobile */
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: var(--font-sm);
  }

  /* Footer */
  footer {
    /* margin and padding handled by width-consistency-fix.css */
    border-radius: var(--radius-xl);
  }
  
  .footer-main {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }
  
  .footer-brand {
    margin-bottom: 4px;
    align-items: center;
  }
  
  .footer-logo {
    height: 32px;
    margin-bottom: 6px;
  }
  
  .footer-tagline {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .footer-contact {
    gap: 20px;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-info-group {
    gap: 6px;
    align-items: center;
    text-align: center;
  }
  
  .footer-info-group h4 {
    font-size: 12px;
    margin-bottom: 6px;
    letter-spacing: 1px;
  }
  
  .footer-info-group a,
  .footer-info-group p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding-top: 16px;
  }
  
  .footer-bottom p {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Utility overrides */
  .container {
    padding: 0 var(--space-md);
  }

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

/* ============================================
   SMALL MOBILE STYLES (< 480px)
   ============================================ */
@media (max-width: 480px) {
  /* Navigation */
  nav {
    width: calc(100% - 24px);
    padding: 10px 16px;
    gap: 20px;
  }
  
  .nav-right {
    gap: 6px;
  }

  .logo {
    font-size: 14px; /* Reduced from var(--font-base) */
  }

  .logo-img {
    height: 24px; /* Reduced from 28px */
  }
  
  .social-btn,
  .theme-toggle,
  .language-toggle {
    width: 36px;
    height: 36px;
  }

  /* Typography */
  .section-title {
    font-size: var(--font-heading-1); /* Uses responsive variable: 22px on small mobile */
  }

  .slogan-title {
    font-size: var(--font-display-1); /* Uses responsive variable: 28px on small mobile */
  }
  
  .slogan-section {
    padding-top: 23px !important; /* Reduced by 10% from 25px */
    padding-bottom: 23px !important;
    margin-top: 32px !important; /* Reduced by 10% from 35px */
  }
  
  /* Category buttons - small mobile */
  .category-buttons-section {
    padding-top: 25px !important;
    padding-bottom: 0 !important;
  }

  .slogan-subtitle {
    font-size: var(--font-base);
  }

  /* Section cards */
  .section-card {
    margin: 24px 12px; /* Proportional to desktop spacing */
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }

  /* Calculator box */
  .calculator-box-section {
    margin: 24px 12px;
  }

  /* Hero section */
  .hero-section {
    margin: 24px 12px;
    height: 440px;
    border-radius: var(--radius-lg);
  }

  /* CRITICAL FIX: Service cards small mobile */
  .services-grid {
    padding: 0 var(--space-sm);
  }

  .service-card {
    padding: var(--space-md);
    max-width: 100%;
    min-height: 260px;
  }

  .service-icons {
    flex-wrap: wrap;
  }

  .icon-badge,
  .country-flag {
    font-size: 20px;
    padding: 6px 10px;
  }

  /* Category buttons */
  .category-buttons {
    gap: var(--space-sm);
  }

  .category-btn {
    padding: 8px 14px;
    font-size: 12px;
    min-width: 90px;
  }

  /* Visa Pricing Mobile */
  .visa-item {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .visa-info {
    flex: 0 0 100%;
  }

  .visa-price {
    font-size: var(--font-price-base);
    align-self: center;
  }

  .visa-region-title {
    font-size: var(--font-heading-3); /* Uses responsive variable */
    padding: var(--space-sm) var(--space-md);
  }

  /* Timeline */
  .timeline-item {
    margin-bottom: 40px; /* Proper compact spacing for small screens */
  }

  .timeline-item:last-child {
    margin-bottom: 0;
  }

  .timeline-item.left,
  .timeline-item.right {
    padding-left: 40px;
    padding-right: var(--space-sm);
  }

  .timeline-content {
    padding: 0;
  }

  .timeline-content::before {
    display: none !important; /* Hide horizontal connector lines on small mobile */
  }

  .timeline-dot {
    top: 3px; /* Center of dot (8px) aligns with center of h3 text (~11px) */
  }

  .timeline-number {
    display: none;
  }

  .timeline-content h3 {
    font-size: var(--font-heading-3); /* Uses responsive variable */
  }

  .timeline-content p {
    font-size: var(--font-body-base); /* Uses responsive variable */
  }

  /* Contact section */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-content > p {
    font-size: var(--font-base);
  }

  .phone-number {
    font-size: var(--font-xl);
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-btn {
    width: 100%;
  }

  .expert-photo {
    width: 150px;
    height: 150px;
    border-width: 4px;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* Footer */
  footer {
    /* margin and padding handled by width-consistency-fix.css */
    border-radius: var(--radius-lg);
  }
  
  .footer-main {
    gap: 18px;
  }
  
  .footer-brand {
    margin-bottom: 2px;
  }
  
  .footer-logo {
    height: 28px;
    margin-bottom: 4px;
  }
  
  .footer-tagline {
    font-size: 12px;
  }
  
  .footer-contact {
    gap: 18px;
  }
  
  .footer-info-group {
    gap: 5px;
  }
  
  .footer-info-group h4 {
    font-size: 11px;
    margin-bottom: 5px;
  }
  
  .footer-info-group a,
  .footer-info-group p {
    font-size: 13px;
  }
  
  .footer-bottom {
    padding-top: 14px;
    gap: 5px;
  }
  
  .footer-bottom p {
    font-size: 11px;
    line-height: 1.4;
  }
}

/* ============================================
   CARD CENTERING FIXES FOR ALL BREAKPOINTS
   ============================================ */
@media (max-width: 768px) {
  /* Ensure all cards are centered on mobile */
  .service-card,
  .pricing-card,
  .why-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center card content */
  .service-content,
  .pricing-content,
  .why-content {
    width: 100%;
  }

  /* Pricing cards specific */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
  }

  .pricing-card {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Why us cards */
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
  }

  .why-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================================
   LANDSCAPE MOBILE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    height: 350px;
  }

  .section-card {
    padding: 30px 40px;
  }

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

  .service-card {
    max-width: 100%;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  nav,
  .hamburger,
  .theme-toggle,
  .social-btn,
  footer {
    display: none;
  }

  .section-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }

  body {
    background: white;
    color: black;
  }
}

/* ============================================
   HIGH DPI SCREENS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  /* Sharper borders and shadows for retina */
  .section-card,
  .service-card,
  .pricing-card,
  .why-card {
    border-width: 0.5px;
  }
}

/* ============================================
   MOTION PREFERENCES
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   DARK MODE PREFERENCES
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg-primary: #0a0a14;
    --color-bg-secondary: #0f0f1a;
    --color-bg-tertiary: #14141f;
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
  }
}


/* === hero-timed-cards.css === */
/* Timed Cards Animation Styles for Parallax Hero */

/* Hero section container */
.hero-section {
    position: relative;
    /* max-width and margin handled by width-consistency-fix.css */
    height: 700px;
    border-radius: 24px;
    overflow: hidden; /* CRITICAL: Keep all content inside */
    background: #0a0a14;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .hero-section {
    background: rgba(20, 20, 31, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(104, 110, 238, 0.1);
}

/* Ensure background respects border-radius */
.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    border-radius: 24px;
    will-change: opacity;
}

/* Temporary background for crossfade transitions */
.hero-background-temp {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    border-radius: 24px;
    pointer-events: none;
}

/* Dark overlay for readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 20, 0.95) 0%,
        rgba(10, 10, 20, 0.7) 50%,
        rgba(10, 10, 20, 0.3) 100%
    );
    z-index: 2;
    border-radius: 24px;
}

@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(10, 10, 20, 0.85) 0%,
            rgba(10, 10, 20, 0.7) 40%,
            rgba(10, 10, 20, 0.5) 70%,
            rgba(10, 10, 20, 0.8) 100%
        );
    }
}

/* Content details overlay */
.hero-details {
    position: absolute;
    left: 60px;
    top: 30%;
    transform: translateY(-50%);
    max-width: 450px;
    z-index: 10;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hero-details.active {
    opacity: 1;
    pointer-events: auto; /* Enable clicks on active details */
}

.hero-place-box {
    margin-bottom: 8px;
    overflow: hidden;
}

.hero-place-text {
    font-size: var(--font-label-lg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-widest);
    color: var(--primary);
    opacity: 0.9;
}

.hero-title-box-1,
.hero-title-box-2 {
    overflow: hidden;
    margin-bottom: 2px;
}

.hero-title-1,
.hero-title-2 {
    font-size: var(--font-display-1);
    font-weight: 800;
    line-height: var(--line-height-display);
    color: white;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-normal);
}

.hero-title-2 {
    margin-bottom: 14px;
}

.hero-desc {
    font-size: var(--font-body-base);
    line-height: var(--line-height-body);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
}

.hero-cta-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Hero button base styles - NO hover animation */
.hero-section .btn-primary,
.hero-details .btn-primary,
.hero-cta-buttons .btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 32px !important;
    background: linear-gradient(135deg, #686EEE 0%, #8B5CF6 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: var(--font-ui-lg) !important; /* Responsive 15px -> 14px */
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: none !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(104, 110, 238, 0.15) !important;
}

/* NO HOVER EFFECTS - removed for consistency */

/* "Подробнее" button */
.hero-cta-buttons .btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    font-size: var(--font-ui-lg, 15px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.hero-cta-buttons .btn-details:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Navigation buttons container - STATIC POSITIONING */
.hero-nav-buttons {
    position: absolute;
    bottom: 60px;
    left: 60px;
    display: flex;
    gap: 12px;
    z-index: 10; /* Below navbar (navbar is z-index: 20) */
}

/* Navigation button styles */
body .hero-section .hero-nav-btn,
body .hero-section .hero-prev-btn,
body .hero-section .hero-next-btn,
body .hero-section button.hero-nav-btn,
body .hero-section button.hero-prev-btn,
body .hero-section button.hero-next-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(104, 110, 238, 0.3) !important;
    background: rgba(104, 110, 238, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #686EEE !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body .hero-section .hero-nav-btn:hover,
body .hero-section .hero-prev-btn:hover,
body .hero-section .hero-next-btn:hover,
body .hero-section button.hero-nav-btn:hover,
body .hero-section button.hero-prev-btn:hover,
body .hero-section button.hero-next-btn:hover {
    background: rgba(104, 110, 238, 0.2) !important;
    border-color: #686EEE !important;
    transform: scale(1.05) !important;
}

body .hero-section .hero-nav-btn:active,
body .hero-section .hero-prev-btn:active,
body .hero-section .hero-next-btn:active,
body .hero-section button.hero-nav-btn:active,
body .hero-section button.hero-prev-btn:active,
body .hero-section button.hero-next-btn:active {
    transform: scale(0.95) !important;
}

body .hero-section .hero-nav-btn svg,
body .hero-section .hero-prev-btn svg,
body .hero-section .hero-next-btn svg,
body .hero-section button.hero-nav-btn svg,
body .hero-section button.hero-prev-btn svg,
body .hero-section button.hero-next-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
    pointer-events: none !important;
}

/* Cards container wrapper - fixed positioning for vignette */
.hero-cards-container {
    position: absolute;
    bottom: 40px;
    right: 40px; /* Extend to right edge */
    width: 990px; /* Wider to show more cards: (140px * 6) + (16px * 5) + extra = 840 + 80 + 70 */
    height: 180px;
    z-index: 15;
    overflow: hidden; /* Hide cards that overflow */
}

/* Scrollable inner container for cards */
.hero-cards-inner {
    display: flex; /* Flexbox for horizontal layout */
    gap: 16px; /* Space between cards */
    width: 100%;
    height: 100%;
    overflow-x: auto; /* Enable native scrolling on all devices */
    overflow-y: hidden;
    cursor: grab; /* Grab cursor for desktop */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: all;
    scroll-behavior: auto; /* Managed by JS for better control */
    scrollbar-width: none; /* Hide scrollbar */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
    padding-right: 6px; /* Minimal padding - card stops at vignette start */
    /* Remove scroll snap for smooth desktop scrolling */
}

.hero-cards-inner::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.hero-cards-inner:active {
    cursor: grabbing;
}

/* Mobile: disable grab cursor */
@media (max-width: 768px) {
    .hero-cards-inner {
        cursor: default;
    }
}

/* Vignette effect - stays fixed on container, doesn't scroll */
/* Left vignette */
.hero-cards-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 120px;
    background: linear-gradient(to right, rgba(10, 10, 20, 0.95), transparent);
    pointer-events: none;
    z-index: 10;
    opacity: 0; /* Hidden by default (at start) */
    transition: opacity 0.3s ease;
}

/* Show left vignette when scrolled away from start */
.hero-cards-container.scrolled-from-start::before {
    opacity: 1;
}

[data-theme="dark"] .hero-cards-container::before {
    background: linear-gradient(to right, rgba(20, 20, 31, 0.95), transparent);
}

/* Right vignette */
.hero-cards-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 120px;
    background: linear-gradient(to left, rgba(10, 10, 20, 0.95), transparent);
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hide vignette when scrolled to the end */
.hero-cards-container.at-end::after {
    opacity: 0;
}

[data-theme="dark"] .hero-cards-container::after {
    background: linear-gradient(to left, rgba(20, 20, 31, 0.95), transparent);
}

/* Individual mini cards */
.hero-mini-card {
    position: relative; /* Use relative for flex layout */
    flex-shrink: 0; /* Prevent cards from shrinking */
    width: 140px;
    height: 180px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    pointer-events: all; /* Cards can be clicked */
    will-change: transform; /* Optimize animations */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease; /* Smooth transitions */
    /* No scroll snap on desktop for smooth scrolling */
}

/* Mobile: enable soft scroll snap for better UX */
@media (max-width: 768px) {
    .hero-mini-card {
        /* snap removed */
    }
    
    /* Only the last card snaps into place */
    .hero-mini-card:last-child {
        /* snap removed */
    }
}

/* Active card indication - Desktop & Mobile */
.hero-mini-card.active {
    transform: scale(1.08); /* Slightly larger */
    box-shadow: 0 8px 32px rgba(104, 110, 238, 0.6); /* Prominent glow */
    border: 2px solid rgba(104, 110, 238, 0.8); /* Colored border */
    z-index: 100 !important; /* Bring to front, override all other z-indexes */
}

/* Cinematic 3D glass text - movie title overlay style */
.hero-mini-card-label {
    position: absolute;
    top: 6px;
    left: 10px;
    padding: 0;
    background: none;
    border: none;
    font-size: var(--font-label-base); /* Responsive 12px */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Cinematic glass material gradient */
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.35)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Dramatic 3D cinematic shadow - layered depth */
    filter: 
        drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9))
        drop-shadow(0 2px 1px rgba(0, 0, 0, 0.3))
        drop-shadow(0 4px 3px rgba(0, 0, 0, 0.25))
        drop-shadow(0 6px 6px rgba(0, 0, 0, 0.2))
        drop-shadow(0 8px 10px rgba(0, 0, 0, 0.15))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    -webkit-filter: 
        drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9))
        drop-shadow(0 2px 1px rgba(0, 0, 0, 0.3))
        drop-shadow(0 4px 3px rgba(0, 0, 0, 0.25))
        drop-shadow(0 6px 6px rgba(0, 0, 0, 0.2))
        drop-shadow(0 8px 10px rgba(0, 0, 0, 0.15))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

[data-theme="dark"] .hero-mini-card-label {
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.75),
        rgba(255, 255, 255, 0.4)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    filter: 
        drop-shadow(0 1px 0 rgba(255, 255, 255, 1))
        drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4))
        drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3))
        drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25))
        drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2))
        drop-shadow(0 0 25px rgba(255, 255, 255, 0.35));
}

.hero-mini-card:hover .hero-mini-card-label {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.45),
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.45)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    filter: 
        drop-shadow(0 1px 0 rgba(255, 255, 255, 1))
        drop-shadow(0 3px 2px rgba(0, 0, 0, 0.3))
        drop-shadow(0 5px 5px rgba(0, 0, 0, 0.25))
        drop-shadow(0 8px 8px rgba(0, 0, 0, 0.2))
        drop-shadow(0 12px 15px rgba(0, 0, 0, 0.15))
        drop-shadow(0 0 30px rgba(104, 110, 238, 0.5))
        drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
}

.hero-mini-card:hover {
    transform: translateY(-8px) scale(1.05); /* Lift card out of deck on hover */
    box-shadow: 0 12px 35px rgba(104, 110, 238, 0.7);
    z-index: 100 !important; /* Ensure hover card is always on top */
}

/* Disable hover effect on active card to avoid confusion */
.hero-mini-card.active:hover {
    transform: scale(1.08); /* Keep active state transform */
    box-shadow: 0 8px 32px rgba(104, 110, 238, 0.6); /* Keep active state shadow */
}

.hero-mini-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-mini-card:hover::before {
    opacity: 1;
}

/* Pagination area - HIDDEN */
.hero-pagination-area {
    display: none; /* Hide dots and progress bar */
}

/* Progress bar */
.hero-progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Slide numbers - now dots */
.hero-slide-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slide-number-item {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slide-number-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-details {
        left: 40px;
        max-width: 450px;
    }

    .hero-title-1,
    .hero-title-2 {
        font-size: 48px;
    }

    .hero-cards-container {
        right: 30px; /* Extend to right edge */
        bottom: 30px;
        width: 800px; /* Wider to show more cards: (120px * 6) + (12px * 5) + extra */
    }
    
    .hero-cards-inner {
        gap: 14px; /* Adjust gap for tablet */
        padding-right: 6px; /* Minimal padding - card stops at vignette start */
    }
    
    .hero-cards-container::before {
        width: 80px; /* Adjusted for tablet width */
    }
    
    [data-theme="dark"] .hero-cards-container::before {
        background: linear-gradient(to right, rgba(20, 20, 31, 0.95), transparent);
    }
    
    .hero-cards-container::after {
        width: 80px; /* Adjusted for tablet width */
    }
    
    [data-theme="dark"] .hero-cards-container::after {
        background: linear-gradient(to left, rgba(20, 20, 31, 0.95), transparent);
    }

    .hero-mini-card {
        width: 138px;
        height: 184px;
    }

    .hero-pagination-area {
        left: 40px;
        bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 605px;
    }
    
    .hero-background,
    .hero-overlay {
        border-radius: 20px;
    }

    .hero-details {
        left: 25px;
        right: 25px;
        top: 40px;
        transform: none;
        max-width: none;
    }

    .hero-place-text {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .hero-title-1,
    .hero-title-2 {
        font-size: 26px;
        margin-bottom: 2px;
        line-height: 1.1;
    }

    .hero-title-2 {
        margin-bottom: 10px;
    }

    .hero-desc {
        font-size: 15px; /* INCREASED from 14px for better readability */
        line-height: 1.5; /* Better line spacing */
        margin-bottom: 14px;
        max-width: 90%;
    }

    /* Show bigger but fewer cards on mobile - full width from left */
    .hero-cards-container {
        display: block; /* Change to block for proper overflow handling */
        bottom: 20px;
        left: 15px;
        right: 0; /* Extend to the absolute right edge */
        width: auto;
        height: 150px;
        overflow: visible; /* Allow vignette to show */
    }
    
    .hero-cards-inner {
        display: flex; /* Flexbox for horizontal layout */
        width: 100%;
        height: 100%;
        gap: 16px;
        overflow-x: auto; /* Allow horizontal scrolling */
        overflow-y: hidden;
        cursor: default;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-right: 6px; /* Minimal padding - card stops at vignette start */
        scroll-behavior: auto; /* Managed by JS */
        
        -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
    }
    
    .hero-cards-inner::-webkit-scrollbar {
        display: none;
    }
    
    .hero-cards-container::before {
        width: 80px; /* Wider gradient */
        background: linear-gradient(to right, rgba(10, 10, 20, 0.95), transparent);
    }
    
    [data-theme="dark"] .hero-cards-container::before {
        background: linear-gradient(to right, rgba(20, 20, 31, 0.95), transparent);
    }
    
    .hero-cards-container::after {
        width: 80px; /* Wider gradient */
        background: linear-gradient(to left, rgba(10, 10, 20, 0.95), transparent);
    }
    
    [data-theme="dark"] .hero-cards-container::after {
        background: linear-gradient(to left, rgba(20, 20, 31, 0.95), transparent);
    }

    .hero-mini-card {
        width: 115px;
        height: 150px;
        flex-shrink: 0;
        /* snap removed */
        position: relative; /* Change from absolute to relative for native scrolling */
        left: auto; /* Reset positioning */
        top: auto; /* Reset positioning */
    }
    
    /* Only the last card snaps into place */
    .hero-mini-card:last-child {
        /* snap removed */
    }
    
    .hero-mini-card-label {
        font-size: 11px;
        letter-spacing: 0.5px;
        top: 8px;
        left: 10px;
    }

    /* Hide navigation buttons on mobile */
    .hero-nav-buttons {
        display: none !important;
    }

    /* Move pagination to bottom left */
    .hero-pagination-area {
        left: 15px;
        bottom: 15px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-progress-bar {
        width: 100px;
        order: 1;
    }

    .hero-slide-numbers {
        order: 2;
        gap: 6px;
    }
    
    .slide-number-item {
        width: 6px;
        height: 6px;
    }

    .hero-cta-buttons {
        flex-direction: row;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .hero-cta-buttons .btn-primary {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 11px 14px !important;
        font-size: 13px !important;
    }

    .hero-cta-buttons .btn-secondary {
        flex: 1;
        min-width: 0;
        padding: 11px 14px;
        font-size: 13px;
    }

    .hero-cta-buttons .btn-details {
        flex: 1;
        min-width: 0;
        padding: 11px 14px;
        font-size: 13px;
    }

    .hero-cta-buttons .btn-articles {
        flex: 1;
        min-width: 0;
        padding: 11px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 550px;
        border-radius: 16px;
    }
    
    .hero-background,
    .hero-overlay {
        border-radius: 16px;
    }

    .hero-details {
        left: 20px;
        right: 20px;
        top: 30px;
        transform: none;
    }

    .hero-place-text {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .hero-title-1,
    .hero-title-2 {
        font-size: 22px;
        line-height: 1.1;
    }

    .hero-title-2 {
        margin-bottom: 8px;
    }

    .hero-desc {
        font-size: 14px; /* INCREASED from 13px for better readability */
        line-height: 1.5; /* Better line spacing */
        margin-bottom: 12px;
    }

    .hero-cards-container {
        left: 12px;
        right: 0; /* Extend to the absolute right edge */
        width: auto;
        height: 145px;
        bottom: 15px;
        overflow: visible;
    }
    
    .hero-cards-inner {
        gap: 14px;
        padding-right: 6px; /* Minimal padding - card stops at vignette start */
        scroll-behavior: auto; /* Managed by JS */
        
        -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
    }
    
    .hero-cards-container::before {
        width: 70px; /* Wider gradient */
        background: linear-gradient(to right, rgba(10, 10, 20, 0.95), transparent);
    }
    
    [data-theme="dark"] .hero-cards-container::before {
        background: linear-gradient(to right, rgba(20, 20, 31, 0.95), transparent);
    }
    
    .hero-cards-container::after {
        width: 70px; /* Wider gradient */
        background: linear-gradient(to left, rgba(10, 10, 20, 0.95), transparent);
    }
    
    [data-theme="dark"] .hero-cards-container::after {
        background: linear-gradient(to left, rgba(20, 20, 31, 0.95), transparent);
    }

    .hero-mini-card {
        width: 109px;
        height: 145px;
        flex-shrink: 0;
        /* snap removed */
        position: relative; /* Change from absolute to relative for native scrolling */
        left: auto; /* Reset positioning */
        top: auto; /* Reset positioning */
    }
    
    /* Only the last card snaps into place */
    .hero-mini-card:last-child {
        /* snap removed */
    }
    
    .hero-mini-card-label {
        font-size: 10px;
        letter-spacing: 0.3px;
        top: 7px;
        left: 9px;
    }

    /* Hide navigation buttons on mobile */
    .hero-nav-buttons {
        display: none !important;
    }

    .hero-cta-buttons {
        flex-direction: row;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .hero-cta-buttons .btn-primary,
    .hero-cta-buttons .btn-secondary,
    .hero-cta-buttons .btn-details,
    .hero-cta-buttons .btn-articles {
        flex: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 10px 10px !important;
        font-size: 12px !important;
    }

    .hero-progress-bar {
        width: 80px;
    }
    
    .slide-number-item {
        width: 5px;
        height: 5px;
    }

    .hero-pagination-area {
        left: 12px;
        bottom: 12px;
    }
}


/* ============================================
   CRITICAL BUTTON FIX - LOAD LAST
   ============================================ */
/* Force round buttons - this must override everything */
.hero-details button.hero-nav-btn,
.hero-details button.hero-prev-btn,
.hero-details button.hero-next-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(104, 110, 238, 0.3) !important;
    background: rgba(104, 110, 238, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    color: #686EEE !important;
}

/* Mobile overrides for button sizes */
@media (max-width: 768px) {
    .hero-details button.hero-nav-btn,
    .hero-details button.hero-prev-btn,
    .hero-details button.hero-next-btn {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 480px) {
    .hero-details button.hero-nav-btn,
    .hero-details button.hero-prev-btn,
    .hero-details button.hero-next-btn {
        width: 36px !important;
        height: 36px !important;
    }
}

/* ============================================
   DESKTOP ONLY: Country-page style carousel
   ============================================ */
@media (min-width: 769px) {
    /* Hide prev/next navigation arrows completely */
    .hero-nav-buttons,
    .hero-prev-btn,
    .hero-next-btn,
    .hero-nav-btn {
        display: none !important;
    }

    /* Container spans full width */
    .hero-cards-container {
        height: 150px;
        bottom: 25px;
        left: 25px;
        right: 0;
        width: auto;
    }

    /* Scroll container matches cp-countries-scroll */
    .hero-cards-inner {
        gap: 20px;
        cursor: grab;
    }

    .hero-cards-inner:active {
        cursor: grabbing;
    }

    /* Cards: liquid glass style */
    .hero-mini-card {
        width: 187px;
        height: 136px;
        border-radius: 14px;
        background-image: none !important;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px) saturate(1.4);
        -webkit-backdrop-filter: blur(12px) saturate(1.4);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 
            0 4px 24px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.12),
            inset 0 -1px 0 rgba(0, 0, 0, 0.08);
        transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        overflow: hidden;
    }

    .hero-mini-card:hover {
        transform: scale(1.03);
        border-color: rgba(255, 255, 255, 0.25);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.18),
            inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    }

    .hero-mini-card.active {
        transform: scale(1.05);
        background: rgba(104, 110, 238, 0.1);
        border: 1.5px solid rgba(104, 110, 238, 0.5);
        box-shadow: 
            0 8px 32px rgba(104, 110, 238, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 0 1px rgba(104, 110, 238, 0.15);
    }

    /* Show the img tag on desktop — fills the glass card */
    .hero-card-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 13px;
    }

    /* Gradient overlay at top */
    .hero-card-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 10px 12px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent);
        border-radius: 13px 13px 0 0;
        z-index: 2;
    }

    /* Label — top left, clean */
    .hero-mini-card-label {
        position: absolute !important;
        top: 10px !important;
        left: 12px !important;
        bottom: auto !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: white !important;
        -webkit-text-fill-color: white !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        text-shadow: none !important;
        -webkit-text-stroke: 0 !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        filter: none !important;
    }

    /* Hide the old ::before hover gradient */
    .hero-mini-card::before {
        display: none !important;
    }

    /* Hide old ::after if any */
    .hero-mini-card::after {
        display: none !important;
    }

    /* Fade edges of container */
    .hero-cards-container::before {
        background: linear-gradient(to right, rgba(10, 10, 20, 0.9), transparent) !important;
        width: 50px;
    }

    .hero-cards-container::after {
        background: linear-gradient(to left, rgba(10, 10, 20, 0.9), transparent) !important;
        width: 50px;
    }
}

/* Hide img and overlay on mobile — keep background-image behavior */
@media (max-width: 768px) {
    .hero-card-img,
    .hero-card-overlay {
        display: none !important;
    }
}

.hero-cta-buttons .btn-articles {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    font-size: var(--font-ui-lg, 15px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.hero-cta-buttons .btn-articles:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
}


/* === css/typography-system.css === */
/* ============================================
   PARALLAX TYPOGRAPHY SYSTEM
   Robust, Coherent Font Sizing Across All Components
   ============================================ */

/* ============================================
   TYPOGRAPHY VARIABLES - SEMANTIC NAMING
   ============================================ */
:root {
  /* Display Sizes - For Hero Sections & Major Headers */
  --font-display-1: 56px;      /* Hero titles, major headlines */
  --font-display-2: 48px;      /* Sub-hero, modal hero titles */
  --font-display-3: 40px;      /* Large section headers */
  
  /* Heading Sizes - For Section & Component Headers */
  --font-heading-1: 32px;      /* Main section titles */
  --font-heading-2: 28px;      /* Subsection titles */
  --font-heading-3: 24px;      /* Component titles, card headers */
  --font-heading-4: 20px;      /* Small card titles */
  --font-heading-5: 18px;      /* FAQ questions, list headers */
  --font-heading-6: 16px;      /* Minor headings, labels */
  
  /* Body Sizes - For Content Text */
  --font-body-xl: 18px;        /* Large body text, important descriptions */
  --font-body-lg: 16px;        /* Standard large text */
  --font-body-base: 17px;      /* Default body text - INCREASED from 16px */
  --font-body-sm: 14px;        /* Smaller body text */
  --font-body-xs: 13px;        /* Caption text, helper text */
  
  /* UI Sizes - For Interface Elements */
  --font-ui-lg: 15px;          /* Large buttons, inputs */
  --font-ui-base: 14px;        /* Standard buttons, inputs */
  --font-ui-sm: 13px;          /* Small buttons, badges */
  --font-ui-xs: 12px;          /* Tiny UI elements */
  
  /* Label & Caption Sizes */
  --font-label-lg: 13px;       /* Large labels */
  --font-label-base: 12px;     /* Standard labels */
  --font-label-sm: 11px;       /* Small labels, eyebrows */
  --font-label-xs: 10px;       /* Tiny labels, micro text */
  
  /* Price & Number Sizes - For Pricing Display */
  --font-price-hero: 28px;     /* Hero pricing */
  --font-price-lg: 24px;       /* Large pricing */
  --font-price-base: 18px;     /* Standard pricing */
  --font-price-sm: 18px;       /* Small pricing */
  
  /* Line Heights - Semantic Naming */
  --line-height-display: 1.1;  /* For large display text */
  --line-height-heading: 1.2;  /* For headings */
  --line-height-body: 1.6;     /* For body text */
  --line-height-relaxed: 1.8;  /* For comfortable reading */
  
  /* Letter Spacing */
  --letter-spacing-tight: -1px;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.5px;
  --letter-spacing-wider: 1px;
  --letter-spacing-widest: 2px;
}

/* ============================================
   RESPONSIVE FONT SCALING
   ============================================ */

/* Tablet (768px - 1024px) - Scale down by 10% */
@media (max-width: 1024px) {
  :root {
    /* Display Sizes */
    --font-display-1: 48px;
    --font-display-2: 40px;
    --font-display-3: 32px;
    
    /* Heading Sizes */
    --font-heading-1: 28px;
    --font-heading-2: 24px;
    --font-heading-3: 22px;
    --font-heading-4: 18px;
    --font-heading-5: 16px;
    --font-heading-6: 15px;
    
    /* Body & UI stay the same for tablet */
    
    /* Price Sizes */
    --font-price-hero: 24px;
    --font-price-lg: 22px;
    --font-price-base: 16px;
    --font-price-sm: 16px;
  }
}

/* Mobile (max 768px) - Scale down by 20% */
@media (max-width: 768px) {
  :root {
    /* Display Sizes */
    --font-display-1: 32px;
    --font-display-2: 28px;
    --font-display-3: 24px;
    
    /* Heading Sizes */
    --font-heading-1: 24px;
    --font-heading-2: 22px;
    --font-heading-3: 20px;
    --font-heading-4: 18px;
    --font-heading-5: 16px;
    --font-heading-6: 14px;
    
    /* Body Sizes */
    --font-body-xl: 16px;
    --font-body-lg: 15px;
    --font-body-base: 16px;    /* INCREASED from 15px */
    --font-body-sm: 13px;
    --font-body-xs: 12px;
    
    /* UI Sizes */
    --font-ui-lg: 14px;
    --font-ui-base: 13px;
    --font-ui-sm: 12px;
    --font-ui-xs: 11px;
    
    /* Price Sizes */
    --font-price-hero: 22px;
    --font-price-lg: 20px;
    --font-price-base: 16px;
    --font-price-sm: 16px;
  }
}

/* Small Mobile (max 480px) - Scale down by 25% */
@media (max-width: 480px) {
  :root {
    /* Display Sizes */
    --font-display-1: 28px;
    --font-display-2: 24px;
    --font-display-3: 22px;
    
    /* Heading Sizes */
    --font-heading-1: 22px;
    --font-heading-2: 20px;
    --font-heading-3: 18px;
    --font-heading-4: 16px;
    --font-heading-5: 15px;
    --font-heading-6: 14px;
    
    /* Body Sizes */
    --font-body-xl: 15px;
    --font-body-lg: 14px;
    --font-body-base: 15px;    /* INCREASED from 14px */
    --font-body-sm: 12px;
    --font-body-xs: 11px;
    
    /* Price Sizes */
    --font-price-hero: 20px;
    --font-price-lg: 18px;
    --font-price-base: 14px;
    --font-price-sm: 14px;
  }
}

/* ============================================
   TYPOGRAPHY UTILITY CLASSES
   ============================================ */

/* Display Classes */
.text-display-1 { font-size: var(--font-display-1); line-height: var(--line-height-display); }
.text-display-2 { font-size: var(--font-display-2); line-height: var(--line-height-display); }
.text-display-3 { font-size: var(--font-display-3); line-height: var(--line-height-heading); }

/* Heading Classes */
.text-heading-1 { font-size: var(--font-heading-1); line-height: var(--line-height-heading); }
.text-heading-2 { font-size: var(--font-heading-2); line-height: var(--line-height-heading); }
.text-heading-3 { font-size: var(--font-heading-3); line-height: var(--line-height-heading); }
.text-heading-4 { font-size: var(--font-heading-4); line-height: var(--line-height-heading); }
.text-heading-5 { font-size: var(--font-heading-5); line-height: var(--line-height-heading); }
.text-heading-6 { font-size: var(--font-heading-6); line-height: var(--line-height-heading); }

/* Body Classes */
.text-body-xl { font-size: var(--font-body-xl); line-height: var(--line-height-body); }
.text-body-lg { font-size: var(--font-body-lg); line-height: var(--line-height-body); }
.text-body-base { font-size: var(--font-body-base); line-height: var(--line-height-body); }
.text-body-sm { font-size: var(--font-body-sm); line-height: var(--line-height-body); }
.text-body-xs { font-size: var(--font-body-xs); line-height: var(--line-height-body); }

/* UI Classes */
.text-ui-lg { font-size: var(--font-ui-lg); }
.text-ui-base { font-size: var(--font-ui-base); }
.text-ui-sm { font-size: var(--font-ui-sm); }
.text-ui-xs { font-size: var(--font-ui-xs); }

/* Label Classes */
.text-label-lg { font-size: var(--font-label-lg); }
.text-label-base { font-size: var(--font-label-base); }
.text-label-sm { font-size: var(--font-label-sm); }
.text-label-xs { font-size: var(--font-label-xs); }

/* Price Classes */
.text-price-hero { font-size: var(--font-price-hero); }
.text-price-lg { font-size: var(--font-price-lg); }
.text-price-base { font-size: var(--font-price-base); }
.text-price-sm { font-size: var(--font-price-sm); }


/* === css/typography-standardization.css === */
/* ============================================
   STANDARDIZED TYPOGRAPHY - SITE-WIDE CONSISTENCY
   All similar elements use the same font sizes
   ============================================ */

/* ============================================
   1. HERO & SLOGAN ELEMENTS
   ============================================ */

/* Main slogan/hero text - LARGEST */
.slogan-title {
    font-size: var(--font-display-1); /* 56px → 48px → 32px → 28px */
    font-weight: 900;
    line-height: var(--line-height-display);
    letter-spacing: var(--letter-spacing-tight);
    text-align: center;
}

/* ============================================
   2. SECTION HEADERS (All main section titles)
   ============================================ */

/* All main section titles - CONSISTENT */
.section-title,
h2.section-title {
    font-size: var(--font-display-3); /* 40px → 32px → 24px → 22px */
    font-weight: 900;
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-tight);
}

/* All section eyebrows - CONSISTENT */
.section-eyebrow {
    font-size: var(--font-label-sm); /* 11px → 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-widest);
}

/* ============================================
   3. SUBSECTION TITLES (h3 elements)
   ============================================ */

/* All subsection titles - CONSISTENT
   Used for: Timeline steps, FAQ categories, Visa regions */
.timeline-content h3,
.faq-category-title,
.visa-region-title,
h3 {
    font-size: var(--font-heading-3); /* 24px → 22px → 20px → 18px */
    font-weight: 800;
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-tight);
}

/* ============================================
   4. ITEM TITLES (h4 elements)
   ============================================ */

/* All item titles - CONSISTENT
   Used for: Visa item titles, service items */
.visa-item h4,
.service-item h4,
h4 {
    font-size: var(--font-heading-5); /* 18px → 16px → 15px */
    font-weight: 700;
    line-height: var(--line-height-heading);
}

/* ============================================
   5. QUESTIONS & INTERACTIVE ELEMENTS
   ============================================ */

/* All questions - CONSISTENT
   Used for: FAQ questions, modal FAQ questions */
.faq-question,
.modal-faq-question {
    font-size: var(--font-body-base) !important; /* Match body text: 15px → 14px → 13px */
    font-weight: 600;
    line-height: var(--line-height-heading);
}

/* ============================================
   6. BODY TEXT & DESCRIPTIONS
   ============================================ */

/* All body text - CONSISTENT
   Used for: Timeline descriptions, FAQ answers, visa descriptions, modal content */
.timeline-content p,
.faq-answer p,
.visa-item p,
.modal-faq-answer p,
.country-modal-hero-overlay p,
.country-modal-header p,
.service-description,
p {
    font-size: var(--font-body-base); /* 15px → 14px → 13px */
    line-height: var(--line-height-body);
}

/* ============================================
   7. NUMBERS & BADGES
   ============================================ */

/* Timeline numbers */
.timeline-number {
    font-size: var(--font-heading-4); /* 20px → 18px */
    font-weight: 800;
    line-height: 1;
}

/* Service numbers in modals */
.service-number {
    font-size: var(--font-ui-base); /* 14px → 13px */
    font-weight: 700;
}

/* ============================================
   8. PRICES
   ============================================ */

/* All prices - CONSISTENT */
.visa-price,
.service-price,
.price {
    font-size: var(--font-price-base); /* 20px → 18px → 16px */
    font-weight: 600;
}

/* ============================================
   9. LABELS & CAPTIONS
   ============================================ */

/* All labels - CONSISTENT */
.country-info-label,
.label {
    font-size: var(--font-label-base); /* 12px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

/* All mini card labels */
.hero-mini-card-label,
.card-label {
    font-size: var(--font-label-base); /* 12px */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
}

/* ============================================
   10. BUTTONS
   ============================================ */

/* All buttons - CONSISTENT */
.btn-primary,
.btn-secondary,
button.btn,
.modal-cta-btn {
    font-size: var(--font-ui-lg); /* 15px → 14px */
    font-weight: 600;
}

/* Small buttons */
.service-order-btn,
.btn-sm {
    font-size: var(--font-ui-sm); /* 13px → 12px → 11px */
    font-weight: 600;
}

/* ============================================
   SUMMARY OF STANDARDIZATION
   ============================================ */

/*
HIERARCHY FROM LARGEST TO SMALLEST:

1. Hero/Slogan: 56px → 48px → 32px → 28px (--font-display-1)
2. Section Titles (h2): 32px → 28px → 24px → 22px (--font-heading-1)
3. Subsection Titles (h3): 24px → 22px → 20px → 18px (--font-heading-3)
4. Item Titles/Questions (h4): 18px → 16px → 15px (--font-heading-5)
5. Body Text: 15px → 14px → 13px (--font-body-base)
6. Large Buttons: 15px → 14px (--font-ui-lg)
7. Small Buttons: 13px → 12px → 11px (--font-ui-sm)
8. Labels: 12px (--font-label-base)
9. Eyebrows: 11px → 10px (--font-label-sm)

All similar elements now use the SAME SIZE across the entire site!
*/


/* === css/country-modal.css === */
/* Country Modal Styles */

.country-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.country-modal.active {
    opacity: 1;
    pointer-events: all;
}

/* Backdrop - Modern Glass Effect */
.country-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Modal Content Container - Glass Morphism */
.country-modal-content {
    position: relative;
    width: calc(100% - 80px);
    max-width: 1360px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    overflow: hidden; /* Clip all content including scrollbar to border-radius */
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollable wrapper inside modal content */
.country-modal-content > * {
    flex-shrink: 0; /* Prevent flex children from shrinking */
}

.country-modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    flex: 1;
}

/* Scrollbar styling - Modern (on modal body) */
.country-modal-body::-webkit-scrollbar {
    width: 6px;
}

.country-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.country-modal-body::-webkit-scrollbar-thumb {
    background: rgba(104, 110, 238, 0.2);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.country-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(104, 110, 238, 0.4);
}

[data-theme="dark"] .country-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .country-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.country-modal.active .country-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

[data-theme="dark"] .country-modal-content {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Close Button - Modern Glass */
.country-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; /* Above hero content */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.country-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .country-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .country-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.country-modal-close svg {
    width: 24px;
    height: 24px;
}

/* Hero Section - Scrolls with content */
.country-modal-hero {
    position: relative;
    width: 100%;
    min-height: 300px;
    max-height: 300px;
    height: 300px;
    overflow: hidden;
    margin: 0 0 40px 0; /* Add bottom margin for spacing */
    padding: 0;
}

.country-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Remove any inline spacing */
    margin: 0;
    padding: 0;
}

.country-modal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.85) 0%, 
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 48px;
}

.country-modal-hero-overlay h1 {
    font-size: var(--font-display-2); /* Responsive 48px -> 40px -> 28px -> 24px */
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-widest);
    line-height: var(--line-height-display);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.country-modal-hero-overlay p {
    font-size: var(--font-body-base); /* Responsive 15px -> 14px -> 13px */
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    line-height: var(--line-height-body);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Modal Body */
.country-modal-body {
    flex: 1;
    padding: 0; /* Remove padding so hero can start at top */
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Two column layout wrapper */
.country-modal-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 40px;
    padding: 0 60px; /* Add horizontal padding */
}

.country-modal-header {
    text-align: center;
    margin-bottom: 32px;
    grid-column: 1 / -1; /* Span full width */
    padding: 0 60px; /* Horizontal padding for all headers */
}

/* Headers inside wrappers keep their padding */
.country-modal-content-wrapper .country-modal-header,
.country-modal-faq-section .country-modal-header {
    padding: 0 60px;
}

.country-modal-header h2 {
    font-size: var(--font-heading-2); /* Responsive 28px -> 24px -> 22px -> 20px */
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    line-height: var(--line-height-heading);
}

.country-modal-header p {
    font-size: var(--font-body-base); /* Responsive 15px -> 14px -> 13px */
    color: var(--color-text-secondary);
    line-height: var(--line-height-body);
}

/* Services List */
.country-services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Country Info Sidebar */
.country-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.country-info-card {
    background: rgba(104, 110, 238, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(104, 110, 238, 0.12);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(104, 110, 238, 0.04);
}

[data-theme="dark"] .country-info-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.country-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(104, 110, 238, 0.16);
    border-color: rgba(104, 110, 238, 0.2);
}

[data-theme="dark"] .country-info-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.country-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: white;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(104, 110, 238, 0.3);
}

.country-info-label {
    font-size: var(--font-label-base); /* Responsive 12px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.country-info-value {
    font-size: var(--font-heading-4); /* Responsive 20px -> 18px */
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 3px;
    line-height: var(--line-height-heading);
}

.country-info-description {
    font-size: var(--font-label-base); /* Responsive 12px */
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Service Card - Modern Glass */
.country-service-card {
    background: rgba(104, 110, 238, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(104, 110, 238, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(104, 110, 238, 0.03);
}

.country-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(104, 110, 238, 0.12);
    border-color: rgba(104, 110, 238, 0.2);
    background: rgba(104, 110, 238, 0.06);
}

[data-theme="dark"] .country-service-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .country-service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 10px;
}

.service-number {
    display: none;
}

.service-card-header h3 {
    flex: 1;
    font-size: var(--font-body-base) !important; /* Match FAQ text: 15px -> 14px -> 13px */
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: var(--line-height-heading);
    margin: 0;
}

.service-description {
    font-size: var(--font-body-base); /* Responsive 15px -> 14px -> 13px */
    line-height: var(--line-height-body);
    color: var(--color-text-secondary);
    margin: 0 0 12px 0;
}

.service-price-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 8px 0 0 0;
}

.service-price {
    font-size: var(--font-price-base); /* Responsive 20px -> 18px -> 16px */
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.service-order-btn {
    display: none;
}

/* Modal Footer - Modern */
.country-modal-footer {
    text-align: center;
    padding: 32px 0 48px; /* Top padding for border + bottom padding for spacing */
    margin-top: 40px; /* Uniform spacing - matches other sections */
    border-top: 1px solid rgba(104, 110, 238, 0.1);
}

[data-theme="dark"] .country-modal-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.country-modal-footer p {
    font-size: var(--font-body-base); /* Responsive 15px -> 14px -> 13px */
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: var(--line-height-body);
}

.country-modal-cta {
    display: flex;
    justify-content: center;
}

.modal-cta-btn {
    padding: 14px 40px;
    font-size: var(--font-ui-lg); /* Responsive 15px -> 14px */
    width: auto; /* Prevent full width on mobile */
    max-width: fit-content; /* Keep button sized to content */
}

/* Other Countries Section - Modern with Enhanced Scrolling */
.other-countries-section {
    margin-top: 40px; /* Uniform spacing - matches other sections */
    padding: 32px 60px 0; /* Top padding for border + horizontal padding */
    border-top: 1px solid rgba(104, 110, 238, 0.1);
    overflow: visible;
}

[data-theme="dark"] .other-countries-section {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.other-countries-header {
    text-align: center;
    margin-bottom: 24px;
}

.other-countries-header h3 {
    font-size: var(--font-heading-3); /* Responsive 24px -> 22px -> 20px -> 18px */
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    line-height: var(--line-height-heading);
}

.other-countries-header p {
    font-size: var(--font-body-sm); /* Responsive 14px -> 13px -> 12px */
    color: var(--color-text-secondary);
    line-height: var(--line-height-body);
}

/* Scrollable container wrapper - now with manual scroll enabled */
.other-countries-scroll-wrapper {
    overflow-x: auto; /* Enable manual scrolling */
    overflow-y: hidden;
    /* Smooth momentum scrolling for touchpad/trackpad */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Padding for visual breathing room */
    padding: 8px 0 16px 0;
    /* Cursor hint for manual scrolling */
    cursor: grab;
    /* Remove scroll snap for smooth desktop scrolling */
}

.other-countries-scroll-wrapper:active {
    cursor: grabbing;
}

.other-countries-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.other-countries-grid {
    display: flex;
    gap: 20px;
    width: fit-content;
    /* No auto-scroll animation - pure manual scrolling */
}

/* Mobile and tablet adjustments */
@media (max-width: 968px) {
    .other-countries-scroll-wrapper {
        overflow-x: auto; /* Enable manual scrolling on tablets */
        cursor: default;
        scroll-snap-type: x proximity; /* Only on mobile/tablet for better UX */
    }
    
    .other-country-card {
        scroll-snap-align: start;
    }
}

/* Animation removed - using pure manual scrolling for better UX */
/* @keyframes scrollCountries {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
} */

.other-country-card {
    position: relative;
    width: 220px; /* Increased from 200px */
    height: 300px; /* Increased from 280px */
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Ensure proper stacking to prevent text bleed-through */
    isolation: isolate;
    z-index: 1;
}

.other-country-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 48px rgba(104, 110, 238, 0.2);
    border-color: rgba(104, 110, 238, 0.4);
    z-index: 2;
}

.other-country-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Prevent image bleed-through */
    position: relative;
    z-index: 0;
}

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

.other-country-overlay {
    position: absolute;
    inset: 0;
    /* Stronger gradient for better text visibility and isolation */
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: background 0.4s ease;
    /* Ensure overlay is above image */
    z-index: 1;
}

.other-country-card:hover .other-country-overlay {
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0) 100%);
}

.other-country-name {
    font-size: var(--font-heading-5); /* Responsive 18px -> 16px */
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    /* Ensure text is on top */
    position: relative;
    z-index: 2;
    line-height: var(--line-height-heading);
}

/* Country Modal FAQ Section - Matching General FAQ Design */
.country-modal-faq-section {
    margin-top: 40px; /* Uniform spacing - matches hero to first section */
    padding: 40px 48px; /* Match main FAQ padding exactly */
}

.modal-faq-category {
    background: rgba(104, 110, 238, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(104, 110, 238, 0.1);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(104, 110, 238, 0.06);
    transition: all 0.3s ease;
    margin-top: 24px;
}

[data-theme="dark"] .modal-faq-category {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.modal-faq-category:hover {
    box-shadow: 0 8px 24px rgba(104, 110, 238, 0.1);
}

[data-theme="dark"] .modal-faq-category:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.modal-faq-list {
    display: flex;
    flex-direction: column;
}

.modal-faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.modal-faq-item:last-child {
    border-bottom: none;
}

.modal-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--font-body-base) !important; /* Match header description: 15px -> 14px -> 13px */
    font-weight: 600;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
    gap: 16px;
    line-height: var(--line-height-heading);
}

.modal-faq-question:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.modal-faq-question span {
    flex: 1;
}

.modal-faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-primary);
}

.modal-faq-item.active .modal-faq-icon {
    transform: rotate(180deg);
}

.modal-faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-faq-item.active .modal-faq-answer {
    /* No padding needed - using margin on paragraph instead */
}

.modal-faq-answer p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-body-base); /* Responsive 15px -> 14px -> 13px */
    margin: 0 0 16px 0 !important; /* Force spacing - match main FAQ */
}

/* Responsive Design */
/* Tablet breakpoint - match main FAQ padding */
@media (max-width: 1024px) {
    .country-modal-faq-section {
        padding: 40px 32px; /* Match main FAQ padding */
    }
}

@media (max-width: 968px) {
    .country-modal-content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .country-info-sidebar {
        order: -1; /* Show above services on tablet */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .other-countries-grid {
        gap: 16px;
        animation: scrollCountries 60s linear infinite; /* Match desktop speed */
    }
    
    .other-country-card {
        width: 180px; /* Increased from 160px */
        height: 260px; /* Increased from 240px */
    }
    
    .other-country-overlay {
        padding: 16px;
    }
    
    .other-country-name {
        font-size: 16px; /* Decreased from 18px */
    }
}

@media (max-width: 768px) {
    .country-modal-content {
        width: calc(100% - 32px);
        max-height: 95vh;
        border-radius: 20px;
    }

    .country-modal-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .country-modal-close svg {
        width: 20px;
        height: 20px;
    }

    .country-modal-hero {
        min-height: 240px;
        max-height: 240px;
        height: 240px;
        margin-bottom: 32px; /* Uniform spacing for mobile */
    }

    .country-modal-hero-overlay {
        padding: 16px 20px;
    }

    .country-modal-hero-overlay h1 {
        font-size: 28px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .country-modal-hero-overlay p {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    /* Headers - uniform padding */
    .country-modal-header {
        padding: 0 24px;
    }

    /* Headers inside wrappers */
    .country-modal-content-wrapper .country-modal-header,
    .country-modal-faq-section .country-modal-header {
        padding: 0 24px;
    }

    .country-modal-header h2 {
        font-size: 22px;
    }

    .country-modal-header p {
        font-size: 13px;
    }
    
    .country-modal-content-wrapper {
        padding: 0 24px; /* Adjust padding for mobile */
    }
    
    .country-modal-faq-section {
        margin-top: 32px; /* Uniform spacing for mobile */
        padding: 40px 24px; /* Match main FAQ padding */
    }
    
    .other-countries-section {
        margin-top: 32px; /* Uniform spacing for mobile */
        padding: 24px 24px 0; /* Adjust padding for mobile */
    }
    
    .country-modal-footer {
        margin-top: 32px; /* Uniform spacing for mobile */
    }
    
    /* Modal CTA button - don't make it full width on mobile */
    .modal-cta-btn {
        width: auto !important;
        max-width: fit-content;
        padding: 12px 32px;
        font-size: 14px;
    }
    
    /* Hide country info sidebar on mobile */
    .country-info-sidebar {
        display: none !important;
    }
    
    /* Make services full width on mobile */
    .country-modal-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Adjust other countries cards for mobile - 3 per viewport */
    .other-countries-scroll-wrapper {
        overflow-x: auto; /* Enable manual scrolling on mobile */
        cursor: default; /* Default cursor for mobile */
    }
    
    .other-countries-grid {
        gap: 12px;
        animation: scrollCountries 50s linear infinite; /* Slightly faster for mobile */
    }
    
    .other-country-card {
        width: 120px; /* Increased from 110px */
        height: 190px; /* Increased from 180px */
        /* Stronger isolation on mobile to prevent text overlap */
        isolation: isolate;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
    }
    
    .other-country-overlay {
        padding: 12px;
        /* Stronger gradient on mobile for better text isolation */
        background: linear-gradient(to top, 
            rgba(0, 0, 0, 1) 0%, 
            rgba(0, 0, 0, 0.8) 35%,
            rgba(0, 0, 0, 0.3) 65%,
            rgba(0, 0, 0, 0) 100%) !important;
    }
    
    .other-country-name {
        font-size: 13px; /* Decreased from 14px */
        /* Stronger text shadow on mobile */
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
    }
}

    .country-service-card {
        padding: 20px;
    }

    .service-card-header {
        gap: 0;
    }

    .service-number {
        width: 32px; /* Reduced from 36px */
        height: 32px; /* Reduced from 36px */
        font-size: 15px; /* Reduced from 16px */
    }

    .service-card-header h3 {
        font-size: var(--font-body-base) !important;
        margin: 0;
    }

    .service-description {
        font-size: var(--font-body-base) !important;
        margin: 0 0 12px 0;
    }

    .service-price-row {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin: 8px 0 0 0;
    }

    .service-price {
        font-size: 22px;
        margin: 0;
    }

    .service-order-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .country-modal-content {
        width: calc(100% - 24px);
        border-radius: 16px;
    }

    .country-modal-hero {
        min-height: 220px;
        max-height: 220px;
        height: 220px;
        margin-bottom: 28px; /* Uniform spacing for small mobile */
    }

    .country-modal-hero-overlay {
        padding: 14px 18px;
    }

    .country-modal-hero-overlay h1 {
        font-size: 24px;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }

    .country-modal-hero-overlay p {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    /* Headers - uniform padding */
    .country-modal-header {
        padding: 0 20px;
        margin-bottom: 24px;
    }

    /* Headers inside wrappers */
    .country-modal-content-wrapper .country-modal-header,
    .country-modal-faq-section .country-modal-header {
        padding: 0 20px;
        margin-bottom: 24px;
    }

    .country-modal-header h2 {
        font-size: 22px;
    }
    
    .country-modal-content-wrapper {
        padding: 0 20px;
    }
    
    .country-modal-faq-section {
        margin-top: 28px; /* Uniform spacing for small mobile */
        padding: 32px 16px; /* Match main FAQ padding */
    }
    
    .other-countries-section {
        margin-top: 28px; /* Uniform spacing for small mobile */
        padding: 24px 20px 0; /* Removed bottom padding */
    }
    
    .country-modal-footer {
        margin-top: 28px; /* Uniform spacing for small mobile */
    }
    
    /* Modal CTA button - don't make it full width on small mobile */
    .modal-cta-btn {
        width: auto !important;
        max-width: fit-content;
        padding: 12px 28px;
        font-size: 14px;
    }

    .country-services-list {
        gap: 12px;
    }

    .country-service-card {
        padding: 18px;
    }

    .service-card-header h3 {
        font-size: var(--font-body-base) !important;
        margin: 0;
    }

    .service-description {
        font-size: var(--font-body-base) !important;
        margin: 0 0 12px 0;
    }

    .service-price-row {
        margin: 8px 0 0 0;
    }

    .service-price {
        font-size: 20px;
        margin: 0;
    }
    
    /* Even bigger cards for smaller phones */
    .other-country-card {
        width: 110px; /* Increased from 100px */
        height: 170px; /* Increased from 160px */
        /* Extra isolation for smallest screens */
        isolation: isolate;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
    }
    
    .other-country-overlay {
        /* Even stronger gradient for smallest screens */
        background: linear-gradient(to top, 
            rgba(0, 0, 0, 1) 0%, 
            rgba(0, 0, 0, 0.85) 30%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0) 100%) !important;
    }
    
    .other-country-name {
        font-size: 12px; /* Decreased from 13px */
        /* Maximum text shadow for smallest screens */
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.7);
    }
}


/* === css/info-modal.css === */
/* Info Modal Styles */

.info-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.info-modal.active {
    opacity: 1;
    pointer-events: all;
}

/* Backdrop - Modern Glass Effect */
.info-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Modal Content Container - Glass Morphism */
.info-modal-content {
    position: relative;
    width: calc(100% - 80px);
    max-width: 1360px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-modal.active .info-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Dark mode */
[data-theme="dark"] .info-modal-content {
    background: rgba(30, 30, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header */
.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .info-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-modal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0;
}

.info-modal-close {
    background: rgba(102, 102, 255, 0.1);
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-modal-close svg {
    width: 24px;
    height: 24px;
    color: #6666FF;
}

.info-modal-close:hover {
    background: rgba(102, 102, 255, 0.2);
    transform: scale(1.05);
}

[data-theme="dark"] .info-modal-close {
    background: rgba(102, 102, 255, 0.15);
}

/* Body */
.info-modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    flex: 1;
    padding: 40px;
}

/* Scrollbar styling */
.info-modal-body::-webkit-scrollbar {
    width: 6px;
}

.info-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.info-modal-body::-webkit-scrollbar-thumb {
    background: rgba(104, 110, 238, 0.2);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.info-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(104, 110, 238, 0.4);
}

/* Sections */
.info-modal-section {
    margin-bottom: 32px;
}

.info-modal-section:last-child {
    margin-bottom: 0;
}

.info-modal-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.info-modal-section p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* List */
.info-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.info-modal-list li:last-child {
    margin-bottom: 0;
}

.info-modal-list li svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: #6666FF;
    margin-top: 2px;
}

.info-modal-list li span {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Calculator Button */
.info-modal-calc-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #6666FF 0%, #4541F1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 102, 255, 0.3);
    text-decoration: none;
}

.info-modal-calc-button svg {
    width: 20px;
    height: 20px;
}

.info-modal-calc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 102, 255, 0.4);
}

/* Contact Buttons */
.info-modal-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.info-modal-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(102, 102, 255, 0.1);
    color: #6666FF;
    border: 1px solid rgba(102, 102, 255, 0.2);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.info-modal-contact-button svg {
    width: 18px;
    height: 18px;
}

.info-modal-contact-button:hover {
    background: rgba(102, 102, 255, 0.2);
    border-color: rgba(102, 102, 255, 0.3);
    transform: translateY(-1px);
}

[data-theme="dark"] .info-modal-contact-button {
    background: rgba(102, 102, 255, 0.15);
    border-color: rgba(102, 102, 255, 0.3);
    color: #8888FF;
}

[data-theme="dark"] .info-modal-contact-button:hover {
    background: rgba(102, 102, 255, 0.25);
}

/* Responsive */
@media (max-width: 968px) {
    .info-modal-content {
        width: calc(100% - 80px);
    }

    .info-modal-header {
        padding: 24px 30px;
    }

    .info-modal-title {
        font-size: 24px;
    }

    .info-modal-body {
        padding: 30px;
    }

    .info-modal-section h3 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .info-modal-content {
        width: calc(100% - 32px);
        max-height: 95vh;
        border-radius: 20px;
    }

    .info-modal-header {
        padding: 20px 24px;
    }

    .info-modal-title {
        font-size: 20px;
    }

    .info-modal-close {
        width: 40px;
        height: 40px;
    }

    .info-modal-close svg {
        width: 20px;
        height: 20px;
    }

    .info-modal-body {
        padding: 24px;
    }

    .info-modal-contact {
        flex-direction: column;
    }

    .info-modal-contact-button {
        width: 100%;
        justify-content: center;
    }

    .info-modal-calc-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .info-modal-content {
        width: calc(100% - 24px);
        border-radius: 16px;
    }

    .info-modal-header {
        padding: 18px 20px;
    }

    .info-modal-title {
        font-size: 18px;
    }

    .info-modal-body {
        padding: 20px;
    }

    .info-modal-section h3 {
        font-size: 16px;
    }
}


/* === css/calculator-box.css === */
/* Calculator Box Section */
.calculator-box-section {
    /* Width and spacing handled by width-consistency-fix.css */
    /* max-width, margin, and padding removed to prevent conflicts */
}

.calculator-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px; /* Match section-card border radius */
    padding: 28px 48px; /* Reduced vertical padding by 30% (40px -> 28px) */
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08); /* Match section-card shadow */
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px; /* Increased gap to match increased padding */
    align-items: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .calculator-box {
    background: rgba(15, 15, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .calculator-box-title {
    color: var(--color-text-primary);
}

[data-theme="dark"] .calculator-box-description {
    color: var(--color-text-secondary);
}

.calculator-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(102, 102, 255, 0.05) 0%, rgba(69, 65, 241, 0.05) 100%);
    border-radius: 50%;
    z-index: 0;
}

.calculator-box-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.calculator-box-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-box-title {
    font-size: var(--font-heading-1);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 12px; /* Increased from 3px */
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-tight);
}

.calculator-box-title .text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calculator-box-description {
    font-size: var(--font-body-base);
    color: var(--color-text-secondary);
    margin-bottom: 24px; /* Increased from 6px */
    line-height: var(--line-height-relaxed);
}

.calculator-box-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px; /* Increased padding for better proportion */
    background: linear-gradient(135deg, #6666FF 0%, #4541F1 100%);
    color: white;
    border: none;
    border-radius: 16px; /* Slightly larger radius */
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 102, 255, 0.3);
}

.calculator-box-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 102, 255, 0.4);
}

.calculator-svg {
    width: 100%;
    max-width: 240px;
    height: auto;
}

/* Rose of winds image — recolor black→purple, remove white bg */
.rose-img {
    /* black → purple #686EEE:
       invert flips black to white, then sepia+saturate+hue-rotate pushes it to purple */
    filter:
        invert(1)
        sepia(1)
        saturate(4)
        hue-rotate(215deg)
        brightness(1.05);
    mix-blend-mode: multiply;   /* white bg becomes transparent in light mode */
    opacity: 0.92;
}

[data-theme="dark"] .rose-img {
    mix-blend-mode: screen;     /* dark bg: screen makes it glow rather than multiply */
    filter:
        invert(1)
        sepia(1)
        saturate(4)
        hue-rotate(215deg)
        brightness(1.2);
    opacity: 0.85;
}

/* Responsive Design */
@media (max-width: 968px) {
    /* Width and margin handled by width-consistency-fix.css */
    /* .calculator-box-section styles removed to prevent conflicts */
    
    .calculator-box {
        grid-template-columns: 1fr;
        gap: 32px; /* Adjusted gap for single column */
        padding: 28px 32px; /* Reduced vertical padding by 30% (40px -> 28px) */
    }

    .calculator-box-title {
        margin-bottom: 10px;
    }

    .calculator-box-description {
        margin-bottom: 20px;
    }

    .calculator-box-visual {
        display: none;
    }

    .calculator-box-button {
        width: 100%;
        justify-content: center;
        padding: 12px 28px;
    }
}

@media (max-width: 768px) {
    /* Width and margin handled by width-consistency-fix.css */
    /* .calculator-box-section styles removed to prevent conflicts */
    
    .calculator-box {
        padding: 28px 24px; /* Reduced vertical padding by 30% (40px -> 28px) */
        border-radius: var(--radius-xl);
    }
}

@media (max-width: 640px) {
    /* Width and margin handled by width-consistency-fix.css */
    /* .calculator-box-section styles removed to prevent conflicts */
    
    .calculator-box {
        padding: 22px 16px; /* Reduced vertical padding by 30% (32px -> 22px) */
        border-radius: var(--radius-lg);
    }

    .calculator-box-description {
        margin-bottom: 16px;
    }
}


/* === css/country-page.css === */
/* ============================================
   COUNTRY PAGE VIEW
   Full-page country view replacing modal
   ============================================ */

/* Hide main content when country page is active */
body.country-page-active .category-content,
body.country-page-active .contact-section,
body.country-page-active .info-modal,
body.country-page-active > .calculator-box-section {
    display: none !important;
}

/* Show country page */
.country-page {
    display: none;
    padding-top: 20px;
}

body.country-page-active .country-page {
    display: block;
}

/* ============================================
   COUNTRY HERO IMAGE
   ============================================ */
.country-page-hero {
    max-width: 1440px;
    width: calc(100% - 80px);
    margin: 0 auto 40px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    height: 700px;
}

.country-page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.country-page-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 48px 44px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    color: white;
}

.country-page-hero-overlay h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.country-page-hero-overlay p {
    font-size: 17px;
    line-height: 1.65;
    opacity: 0.9;
    max-width: 700px;
}

/* Back button */
.country-page-back {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.country-page-back:hover {
    background: rgba(255, 255, 255, 0.25);
}

.country-page-back svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   COUNTRY INFO CARDS (stats row)
   ============================================ */
.country-page-info {
    max-width: 1440px;
    width: calc(100% - 80px);
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.country-info-stat {
    background: var(--glass-bg, rgba(255, 255, 255, 0.8));
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.06));
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.country-info-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.country-info-stat .stat-label {
    font-size: 16px;
    color: var(--color-text-secondary, #6b7280);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.country-info-stat .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary, #151419);
    margin-bottom: 4px;
}

.country-info-stat .stat-desc {
    font-size: 14px;
    color: var(--color-text-secondary, #9ca3af);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.country-page-services {
    max-width: 1440px;
    width: calc(100% - 80px);
    margin: 0 auto 48px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.8));
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.06));
    border-radius: 24px;
    padding: 48px;
}

.country-page-services .section-heading {
    margin-bottom: 12px;
    text-align: center;
}

.country-page-services .section-heading h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary, #151419);
}

.country-page-services .section-heading p {
    font-size: 17px;
    color: var(--color-text-secondary, #6b7280);
    margin-top: 8px;
    line-height: 1.5;
}

.country-page-services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

/* Service card */
.cp-service-card {
    background: var(--color-bg, #fff);
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.06));
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 32px;
}

.cp-service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.cp-service-card-content {
    flex: 1;
    min-width: 0;
}

.cp-service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.cp-service-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6666FF, #4541F1);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
}

.cp-service-card-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary, #151419);
    line-height: 1.4;
}

.cp-service-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary, #6b7280);
    margin-bottom: 0;
}

.cp-service-price-row {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cp-service-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary, #6666FF);
    padding: 10px 22px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    white-space: nowrap;
}

.cp-service-order-btn {
    padding: 12px 28px;
    border: 2px solid var(--color-primary, #6666FF);
    border-radius: 12px;
    background: transparent;
    color: var(--color-primary, #6666FF);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cp-service-order-btn:hover {
    background: var(--color-primary, #6666FF);
    color: white;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.country-page-faq {
    max-width: 1440px;
    width: calc(100% - 80px);
    margin: 0 auto 48px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.8));
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.06));
    border-radius: 24px;
    padding: 48px;
}

.country-page-faq .section-heading {
    text-align: center;
}

.country-page-faq .section-heading h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary, #151419);
    margin-bottom: 8px;
}

.country-page-faq .section-heading p {
    font-size: 17px;
    color: var(--color-text-secondary, #6b7280);
    line-height: 1.5;
}

.cp-faq-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cp-faq-item {
    border-bottom: 1px solid var(--glass-border, rgba(0, 0, 0, 0.06));
}

.cp-faq-item:last-child {
    border-bottom: none;
}

.cp-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--color-text-primary, #151419);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    gap: 16px;
}

.cp-faq-question svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary, #6b7280);
    transition: transform 0.3s ease;
}

.cp-faq-item.active .cp-faq-question svg {
    transform: rotate(180deg);
}

.cp-faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.cp-faq-answer p {
    padding: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary, #6b7280);
}

/* ============================================
   CALCULATOR BOX (COUNTRY PAGE)
   ============================================ */
.country-page-calculator {
    max-width: 1440px;
    width: calc(100% - 80px);
    margin: 0 auto 48px;
}

.country-page-calculator .calculator-box-content {
    text-align: center;
}

.country-page-calculator .calculator-box {
    width: 100%;
    grid-template-columns: 1fr;
}

.country-page-calculator .calculator-box-visual {
    display: none;
}

/* ============================================
   CONTACT SECTION (COUNTRY PAGE)
   ============================================ */
.country-page-contact {
    max-width: 1440px;
    width: calc(100% - 80px);
    margin: 0 auto 48px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.8));
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.06));
    border-radius: 24px;
    padding: 48px;
    text-align: center;
}

.country-page-contact h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary, #151419);
    margin-bottom: 12px;
}

.country-page-contact p {
    font-size: 17px;
    color: var(--color-text-secondary, #6b7280);
    margin-bottom: 28px;
    line-height: 1.5;
}

.cp-contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cp-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cp-contact-btn.whatsapp {
    background: #25D366;
    color: white;
}

.cp-contact-btn.whatsapp:hover {
    background: #1fba59;
}

.cp-contact-btn.telegram {
    background: #2AABEE;
    color: white;
}

.cp-contact-btn.telegram:hover {
    background: #229ed9;
}

.cp-contact-btn.email-btn {
    background: var(--color-primary, #6666FF);
    color: white;
}

.cp-contact-btn.email-btn:hover {
    background: #4541F1;
}

.cp-contact-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   OTHER COUNTRIES CAROUSEL
   ============================================ */
.country-page-carousel {
    max-width: 1440px;
    width: calc(100% - 80px);
    margin: 0 auto 60px;
}

.country-page-carousel .section-heading {
    margin-bottom: 24px;
    text-align: center;
}

.country-page-carousel .section-heading h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary, #151419);
}

.country-page-carousel .section-heading p {
    font-size: 16px;
    color: var(--color-text-secondary, #6b7280);
    margin-top: 6px;
}

.cp-countries-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scroll-behavior: auto;
}

.cp-countries-scroll::-webkit-scrollbar {
    display: none;
}

.cp-country-card {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cp-country-card:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.cp-country-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.cp-country-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent);
    border-radius: 15px 15px 0 0;
}

.cp-country-card-name {
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ============================================
   VISA ORDER BUTTON (ВИЗЫ & ПРОЧЕЕ sections)
   ============================================ */
.visa-order-btn {
    flex-shrink: 0;
    padding: 10px 22px;
    border: 2px solid var(--color-primary, #6666FF);
    border-radius: 12px;
    background: transparent;
    color: var(--color-primary, #6666FF);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    align-self: center;
}

.visa-order-btn:hover {
    background: var(--color-primary, #6666FF);
    color: white;
}

@media (max-width: 768px) {
    .visa-item {
        flex-wrap: wrap;
    }

    /* Price + Order button row on mobile */
    .visa-price,
    .visa-order-btn {
        flex: 1;
        text-align: center;
        padding: 10px 14px;
        font-size: 14px;
    }

    .visa-order-btn {
        width: auto;
        margin-top: 0;
    }
}

/* ============================================
   CONTACT CHOICE MODAL
   ============================================ */
.contact-choice-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.contact-choice-modal.active {
    opacity: 1;
    pointer-events: all;
}

.contact-choice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-choice-box {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: calc(100% - 40px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    text-align: center;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-choice-modal.active .contact-choice-box {
    transform: scale(1) translateY(0);
}

.contact-choice-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-choice-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.contact-choice-close svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.contact-choice-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary, #151419);
    margin-bottom: 8px;
}

.contact-choice-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary, #6b7280);
    margin-bottom: 28px;
    line-height: 1.5;
}

.contact-choice-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-choice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.contact-choice-btn.whatsapp {
    background: #25D366;
    color: white;
}

.contact-choice-btn.whatsapp:hover {
    background: #1fba59;
}

.contact-choice-btn.telegram {
    background: #2AABEE;
    color: white;
}

.contact-choice-btn.telegram:hover {
    background: #229ed9;
}

.contact-choice-btn.email-btn {
    background: var(--color-primary, #6666FF);
    color: white;
}

.contact-choice-btn.email-btn:hover {
    background: #4541F1;
}

.contact-choice-btn svg {
    width: 20px;
    height: 20px;
}

/* Dark theme */
[data-theme="dark"] .contact-choice-box {
    background: #1a1a2e;
}

[data-theme="dark"] .contact-choice-close {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .contact-choice-close svg {
    color: #9ca3af;
}

@media (max-width: 480px) {
    .contact-choice-box {
        padding: 28px 20px;
        border-radius: 20px;
    }
    
    .contact-choice-title {
        font-size: 20px;
    }
    
    .contact-choice-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ============================================
   DARK THEME
   ============================================ */
[data-theme="dark"] .country-page-services,
[data-theme="dark"] .country-page-faq,
[data-theme="dark"] .country-page-contact {
    background: rgba(20, 20, 35, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cp-service-card {
    background: rgba(30, 30, 50, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .country-info-stat {
    background: rgba(20, 20, 35, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .country-page-back {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .country-page-hero {
        width: calc(100% - 40px);
        height: 460px;
    }
    
    .country-page-hero-overlay h1 {
        font-size: 36px;
    }
    
    .country-page-hero-overlay p {
        font-size: 16px;
    }
    
    .country-page-info {
        width: calc(100% - 40px);
    }
    
    .country-page-services,
    .country-page-faq,
    .country-page-contact,
    .country-page-calculator,
    .country-page-carousel {
        width: calc(100% - 40px);
        padding: 36px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .country-page {
        padding-top: 10px;
    }

    .country-page-hero {
        width: calc(100% - 32px);
        height: 350px;
        border-radius: 20px;
    }
    
    .country-page-hero-overlay {
        padding: 24px 20px;
    }
    
    .country-page-hero-overlay h1 {
        font-size: 26px;
    }
    
    .country-page-hero-overlay p {
        font-size: 14px;
        line-height: 1.5;
    }

    .country-page-back {
        top: 16px;
        left: 16px;
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 10px;
    }

    .country-page-back svg {
        width: 16px;
        height: 16px;
    }
    
    .country-page-info {
        width: calc(100% - 32px);
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 32px;
    }

    .country-info-stat {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .country-info-stat .stat-label {
        font-size: 12px;
    }

    .country-info-stat .stat-value {
        font-size: 22px;
    }

    .country-info-stat .stat-desc {
        font-size: 12px;
    }
    
    .country-page-services,
    .country-page-faq,
    .country-page-contact,
    .country-page-calculator,
    .country-page-carousel {
        width: calc(100% - 32px);
        padding: 28px 20px;
        margin-bottom: 32px;
        border-radius: 20px;
    }
    
    .country-page-services .section-heading h2,
    .country-page-faq .section-heading h2,
    .country-page-contact h2,
    .country-page-carousel .section-heading h2 {
        font-size: 22px;
    }

    .country-page-services .section-heading p,
    .country-page-faq .section-heading p,
    .country-page-contact p,
    .country-page-carousel .section-heading p {
        font-size: 14px;
    }
    
    .cp-service-card {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        border-radius: 16px;
    }

    .cp-service-card-content {
        width: 100%;
    }
    
    .cp-service-card-header h3 {
        font-size: 17px;
    }

    .cp-service-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-radius: 8px;
    }

    .cp-service-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .cp-service-price {
        font-size: 20px;
        padding: 10px 18px;
        flex: 1 !important;
        text-align: center;
    }
    
    .cp-service-price-row {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
        width: 100%;
        padding-top: 16px;
        border-top: 1px solid var(--glass-border, rgba(0, 0, 0, 0.06));
    }
    
    .cp-service-order-btn {
        width: auto !important;
        flex: 1 !important;
        text-align: center;
        padding: 10px 14px;
    }

    .cp-faq-question {
        font-size: 15px;
        padding: 16px 0;
    }

    .cp-faq-answer p {
        font-size: 14px;
    }
    
    .cp-contact-buttons {
        flex-direction: column;
    }
    
    .cp-contact-btn {
        justify-content: center;
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .cp-country-card {
        width: 180px;
        height: 130px;
        border-radius: 14px;
    }

    .cp-country-card-name {
        font-size: 14px;
    }

    .country-page-services-list {
        gap: 14px;
    }

    .country-page-calculator .calculator-box {
        border-radius: 20px;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    .country-page-hero {
        width: calc(100% - 24px);
        height: 240px;
        border-radius: 16px;
        margin-bottom: 24px;
    }

    .country-page-hero-overlay {
        padding: 20px 16px;
    }
    
    .country-page-hero-overlay h1 {
        font-size: 22px;
    }

    .country-page-hero-overlay p {
        font-size: 13px;
    }

    .country-page-back {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .country-page-info {
        width: calc(100% - 24px);
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 24px;
    }

    .country-info-stat {
        padding: 16px;
    }

    .country-info-stat .stat-value {
        font-size: 20px;
    }
    
    .country-page-services,
    .country-page-faq,
    .country-page-contact,
    .country-page-calculator,
    .country-page-carousel {
        width: calc(100% - 24px);
        padding: 20px 14px;
        margin-bottom: 24px;
        border-radius: 16px;
    }

    .country-page-services .section-heading h2,
    .country-page-faq .section-heading h2,
    .country-page-contact h2,
    .country-page-carousel .section-heading h2 {
        font-size: 20px;
    }

    .cp-service-card {
        padding: 16px;
    }

    .cp-service-card-header {
        gap: 12px;
    }

    .cp-service-card-header h3 {
        font-size: 16px;
    }

    .cp-service-price {
        font-size: 18px;
        padding: 8px 14px;
        flex: 1 !important;
        text-align: center;
    }

    .cp-service-price-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    .cp-service-order-btn {
        padding: 8px 12px;
        font-size: 13px;
        flex: 1 !important;
        text-align: center;
    }

    .cp-country-card {
        width: 160px;
        height: 110px;
        border-radius: 12px;
    }

    .cp-countries-scroll {
        gap: 12px;
    }
}


/* === css/search.css === */
/* Navigation Search Bar Styles */

.nav-search {
    position: relative;
    overflow: visible !important;
    /* Removed margin-right to use nav-right's gap spacing for consistency */
}

.search-toggle {
    width: 42px; /* Match social-btn size */
    height: 42px;
    border-radius: 50%;
    background: rgba(104, 110, 238, 0.1);
    border: 2px solid var(--glass-border);
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background: rgba(104, 110, 238, 0.15);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .search-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .search-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(104, 110, 238, 0.5);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 400px;
    max-height: 0;
    background: var(--color-bg-primary);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10000;
}

.search-dropdown.active {
    max-height: 500px !important;
    opacity: 1 !important;
    pointer-events: all !important;
    border: 2px solid var(--color-primary) !important;
    box-shadow: 0 12px 40px rgba(104, 110, 238, 0.2) !important;
}

[data-theme="dark"] .search-dropdown {
    background: #0f0f1a;
    border-color: rgba(104, 110, 238, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Search Input */
.search-input-wrapper {
    position: relative;
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 36px 10px 36px;
    background: transparent;
    border: none;
    font-size: 15px;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-secondary);
}

.search-clear {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-clear:hover {
    color: var(--color-text-primary);
}

.search-clear svg {
    width: 16px;
    height: 16px;
}

.search-clear.visible {
    display: flex;
}

/* Search Results */
.search-results {
    max-height: 380px;
    overflow-y: auto;
    padding: 8px;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(104, 110, 238, 0.3);
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(104, 110, 238, 0.5);
}

/* Empty State */
.search-empty {
    text-align: center;
    padding: 32px 20px;
    color: var(--color-text-secondary);
}

.search-empty svg {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.search-empty p {
    font-size: 13px;
    line-height: 1.4;
}

/* Search Result Categories */
.search-category {
    margin-bottom: 12px;
}

.search-category:last-child {
    margin-bottom: 0;
}

.search-category-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    padding: 6px 12px;
    margin-bottom: 4px;
}

.search-result-item {
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.search-result-item:hover {
    background: rgba(104, 110, 238, 0.05);
    border-color: rgba(104, 110, 238, 0.2);
    transform: translateX(2px);
}

[data-theme="dark"] .search-result-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(104, 110, 238, 0.3);
}

/* Country Result */
.search-result-country {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-result-flag {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.search-result-subtitle {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--gradient-primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 4px;
}

/* Service Result */
.search-result-service {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-service .search-result-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.search-result-country-tag {
    font-size: 10px;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    padding: 2px 6px;
    border-radius: 3px;
}

.search-result-price {
    font-size: 14px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 2px;
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 32px 20px;
}

.search-no-results svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    opacity: 0.2;
}

.search-no-results h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.search-no-results p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Highlight matched text */
.search-highlight {
    background: rgba(104, 110, 238, 0.2);
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 3px;
    padding: 0 2px;
}

[data-theme="dark"] .search-highlight {
    background: rgba(104, 110, 238, 0.3);
}

/* Responsive */
@media (max-width: 968px) {
    .search-dropdown {
        width: 340px;
    }
}

@media (max-width: 768px) {
    .search-toggle {
        width: 38px; /* Match other button sizes */
        height: 38px;
    }
    
    .search-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .search-dropdown {
        width: 320px;
        max-width: calc(100vw - 40px);
        right: 0;
        left: auto;
        transform: none;
        top: 60px;
    }
    
    .search-input-wrapper {
        padding: 12px 14px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 8px 32px 8px 32px;
    }
    
    .search-results {
        max-height: 320px;
    }
    
    .search-result-flag {
        width: 36px;
        height: 36px;
    }
    
    .search-result-title {
        font-size: 13px;
    }
    
    .search-result-subtitle {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .search-dropdown {
        width: 280px;
        max-width: calc(100vw - 32px);
        right: 8px;
        top: 56px;
    }
    
    .search-input-wrapper {
        padding: 10px 12px;
    }
}


/* === css/study-tariffs.css === */
/* Emergency search dropdown fixes (same as index.html) */
nav{overflow:visible !important}
.nav-right{overflow:visible !important}
.nav-search{overflow:visible !important}
.search-dropdown{display:none}
.search-dropdown.active{max-height:500px !important;opacity:1 !important;pointer-events:all !important;visibility:visible !important;display:block !important}
.search-input{background:white !important;color:black !important}
[data-theme="dark"] .search-input{background:#1a1a2e !important;color:white !important}

/* NAV - using main site styles from components.css */

/* Standalone text-gradient */
.text-gradient{background:var(--gradient-primary);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

/* HERO */
.s-hero{position:relative;overflow:hidden;padding:100px 24px 50px}
.s-hero-bg{position:absolute;inset:0;z-index:0}
.s-hero-bg::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 80% 60% at 20% 80%,rgba(104,110,238,0.12) 0%,transparent 60%),radial-gradient(ellipse 60% 50% at 80% 20%,rgba(139,92,246,0.1) 0%,transparent 50%)}
[data-theme="dark"] .s-hero-bg::before{background:radial-gradient(ellipse 80% 60% at 20% 80%,rgba(104,110,238,0.2) 0%,transparent 60%),radial-gradient(ellipse 60% 50% at 80% 20%,rgba(139,92,246,0.15) 0%,transparent 50%)}
.s-hero-inner{position:relative;z-index:1;max-width:1100px;margin:0 auto}
.s-hero-t{font-size:clamp(36px,6vw,60px);font-weight:800;line-height:1.1;letter-spacing:-1.5px;margin-bottom:48px;margin-top:0;text-align:center;opacity:0;transform:translateY(30px)}
.s-hero-sub{font-size:clamp(15px,2vw,18px);line-height:1.6;color:var(--color-text-secondary);max-width:720px;margin:24px auto 0;text-align:center;opacity:0;transform:translateY(20px)}

/* SECTION HEADERS */
.sec-ey{font-size:12px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--color-primary);margin-bottom:12px}
.sec-hdr{text-align:center;margin-bottom:60px}
.sec-title{font-size:clamp(28px,4vw,40px);font-weight:800;line-height:1.15;letter-spacing:-0.5px}

/* COUNTRY CARDS */
.c-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:1100px;margin:0 auto}
.c-card{position:relative;border-radius:24px;overflow:hidden;aspect-ratio:3/4;transition:transform 0.5s cubic-bezier(0.23,1,0.32,1),box-shadow 0.5s;opacity:0;transform:translateY(30px)}
.c-card:hover{transform:translateY(-8px);box-shadow:0 20px 60px rgba(104,110,238,0.25)}
.c-card-bg{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform 0.6s cubic-bezier(0.23,1,0.32,1)}
.c-card:hover .c-card-bg{transform:scale(1.08)}
.c-card-ov{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,0,0,0.7) 100%)}
.c-card-ct{position:absolute;bottom:0;left:0;right:0;padding:32px 28px;z-index:1}
.c-card-flag{width:40px;height:28px;border-radius:4px;object-fit:cover;margin-bottom:12px;box-shadow:0 2px 8px rgba(0,0,0,0.3)}
.c-card-name{font-size:28px;font-weight:800;color:#fff;line-height:1.1;margin-bottom:8px}
.c-card-desc{font-size:14px;color:rgba(255,255,255,0.8);line-height:1.5}
.c-card-arr{display:none}
.c-card:hover .c-card-arr{opacity:1;transform:translateX(0)}
.c-card-arr svg{width:18px;height:18px;stroke:#fff;stroke-width:2;fill:none}

/* ===== TARIFF CATALOG ===== */
.s-tariffs{padding:96px 48px 40px;background:var(--color-bg-secondary);max-width:1440px;margin:0 auto;width:calc(100% - 80px);border-radius:32px;box-sizing:border-box}
[data-theme="dark"] .s-tariffs{background:rgba(255,255,255,0.02)}

/* Country filter tabs */
.tf-tabs{display:flex;justify-content:center;gap:12px;margin-bottom:32px;flex-wrap:wrap}
.tf-tab{padding:10px 28px;border-radius:14px;border:1px solid rgba(104,110,238,0.15);background:rgba(104,110,238,0.04);font-size:14px;font-weight:700;cursor:pointer;transition:all 0.3s;color:var(--color-text-secondary);display:flex;align-items:center;gap:8px}
.tf-tab img{width:22px;height:16px;border-radius:3px;object-fit:cover}
.tf-tab:hover{border-color:rgba(104,110,238,0.3);background:rgba(104,110,238,0.08)}
.tf-tab.active{background:var(--gradient-primary);color:#fff;border-color:transparent;box-shadow:0 4px 16px rgba(104,110,238,0.35)}

/* Category filter */
.tf-cats{display:flex;justify-content:center;gap:8px;margin-bottom:40px;flex-wrap:wrap}
.tf-cat{padding:6px 16px;border-radius:10px;font-size:12px;font-weight:600;cursor:pointer;border:1px solid rgba(104,110,238,0.1);background:transparent;color:var(--color-text-muted);transition:all 0.3s}
.tf-cat:hover,.tf-cat.active{color:var(--color-primary);border-color:var(--color-primary);background:rgba(104,110,238,0.06)}

/* Program cards grid */
.tf-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;max-width:100%;margin:0 auto}
.tf-card{background:var(--color-bg-primary);border-radius:22px;border:1px solid rgba(104,110,238,0.08);overflow:hidden;transition:transform 0.4s,box-shadow 0.4s;display:flex;flex-direction:column}
.tf-card:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(104,110,238,0.12)}
.tf-card-hdr{padding:22px 28px 14px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tf-card-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:8px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px}
.tf-card-badge img{width:18px;height:13px;border-radius:2px;object-fit:cover}
.tf-card-badge.cz{background:rgba(17,69,148,0.1);color:#114594}
.tf-card-badge.sk{background:rgba(0,82,165,0.1);color:#0052a5}
.tf-card-badge.at{background:rgba(200,16,46,0.1);color:#c8102e}
.tf-card-badge.online{background:rgba(104,110,238,0.1);color:var(--color-primary)}
.tf-card-chip{display:inline-flex;padding:5px 11px;border-radius:7px;font-size:11px;font-weight:700;letter-spacing:0.3px;border:1px solid rgba(104,110,238,0.15);color:var(--color-text-muted);background:rgba(104,110,238,0.04)}
.tf-card-body{padding:0 28px 0;display:flex;flex-direction:column;flex:1}
.tf-card-title{font-size:20px;font-weight:700;margin-bottom:8px;line-height:1.3}
.tf-card-meta{display:none}
.tf-card-tag{font-size:12px;padding:4px 10px;border-radius:6px;background:rgba(104,110,238,0.06);color:var(--color-text-muted);font-weight:600}
.tf-card-desc{font-size:15px;color:var(--color-text-secondary);line-height:1.6;margin-bottom:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1}

/* Card footer: price + CTA 50/50 */
.tf-card-footer{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:20px;border-top:1px solid rgba(104,110,238,0.08)}
.tf-card-from{font-size:16px;font-weight:800;color:var(--color-primary);display:flex;align-items:center;justify-content:center;padding:16px;border-right:1px solid rgba(104,110,238,0.08)}
.tf-card-from span{font-weight:800}

/* CTA button */
.tf-card-cta{display:flex;align-items:center;justify-content:center;padding:16px;background:transparent;color:var(--color-primary);font-size:15px;font-weight:700;cursor:pointer;transition:all 0.3s;text-decoration:none;white-space:nowrap;border:none;border-radius:0 0 22px 0}
.tf-card-cta:hover{background:rgba(104,110,238,0.06);color:var(--color-primary)}
.email-hover-btn:hover{background:var(--color-primary)!important;color:#fff!important;border-color:var(--color-primary)!important}
.email-hover-btn:hover svg{stroke:#fff}

/* No results */
.tf-empty{text-align:center;padding:60px 20px;color:var(--color-text-muted);font-size:16px;display:none}

/* QUIZ — layout handled by section-card */
.s-quiz{}
.quiz-w{max-width:900px;margin:0 auto}
.quiz-card{background:var(--color-bg-primary);border-radius:24px;border:1px solid rgba(104,110,238,0.1);box-shadow:var(--shadow-lg);overflow:hidden}
.quiz-hdr{padding:32px 36px 0}
.quiz-dots{display:flex;gap:8px;margin-bottom:24px}
.quiz-dot{height:4px;flex:1;border-radius:4px;background:rgba(104,110,238,0.12);transition:background 0.4s}
.quiz-dot.active{background:var(--gradient-primary)}
.quiz-q{font-size:22px;font-weight:700;margin-bottom:8px;line-height:1.3}
.quiz-hint{font-size:14px;color:var(--color-text-muted);margin-bottom:24px}
.quiz-body{padding:0 36px 36px}
.quiz-opts{display:flex;flex-direction:column;gap:12px}
.quiz-opt{display:flex;align-items:center;gap:14px;padding:16px 20px;border-radius:16px;border:1px solid rgba(104,110,238,0.12);background:rgba(104,110,238,0.03);cursor:pointer;transition:all 0.3s;font-size:15px;font-weight:500}
.quiz-opt:hover{border-color:rgba(104,110,238,0.3);background:rgba(104,110,238,0.07)}
.quiz-opt.sel{border-color:var(--color-primary);background:rgba(104,110,238,0.1);box-shadow:0 0 0 2px rgba(104,110,238,0.2)}
.quiz-opt-i{width:36px;height:36px;border-radius:10px;background:rgba(104,110,238,0.08);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.quiz-nav{display:flex;justify-content:space-between;align-items:center;padding:20px 36px;border-top:1px solid rgba(104,110,238,0.08)}
.qbtn{padding:12px 28px;border-radius:12px;font-size:14px;font-weight:600;cursor:pointer;transition:all 0.3s;border:none}
.qbtn.sec{background:rgba(104,110,238,0.06);color:var(--color-text-secondary)}
.qbtn.sec:hover{background:rgba(104,110,238,0.12)}
.qbtn.pri{background:var(--gradient-primary);color:#fff;box-shadow:0 4px 16px rgba(104,110,238,0.3)}
.qbtn.pri:hover{box-shadow:0 6px 24px rgba(104,110,238,0.45);transform:translateY(-1px)}
.qbtn:disabled{opacity:0.4;cursor:not-allowed;transform:none!important}
.quiz-res{text-align:center;padding:48px 36px}
.quiz-res-flag{width:80px;height:56px;border-radius:8px;object-fit:cover;margin-bottom:20px;box-shadow:0 4px 16px rgba(0,0,0,0.15)}
.quiz-res-t{font-size:26px;font-weight:800;margin-bottom:10px}
.quiz-res-d{font-size:15px;color:var(--color-text-secondary);line-height:1.6;margin-bottom:28px;max-width:420px;margin-left:auto;margin-right:auto}
.quiz-res-cta{display:inline-flex;align-items:center;gap:8px;padding:14px 32px;background:var(--gradient-primary);color:#fff;border:none;border-radius:14px;font-size:15px;font-weight:600;cursor:pointer;text-decoration:none;transition:all 0.3s;box-shadow:0 4px 16px rgba(104,110,238,0.3)}
.quiz-res-cta:hover{box-shadow:0 8px 28px rgba(104,110,238,0.45);transform:translateY(-2px)}
.quiz-restart{display:block;margin-top:16px;font-size:13px;color:var(--color-text-muted);cursor:pointer;background:none;border:none;text-decoration:underline}

/* TIMELINE - using main site styles from components.css */

/* FAQ */
.s-faq{padding:76px 0;background:var(--color-bg-secondary)}
[data-theme="dark"] .s-faq{background:rgba(255,255,255,0.02)}
.faq-c{max-width:760px;margin:0 auto}
.faq-i{border-radius:16px;border:1px solid rgba(104,110,238,0.08);background:var(--color-bg-primary);margin-bottom:12px;overflow:hidden;transition:box-shadow 0.3s}
.faq-i:hover{box-shadow:var(--shadow-sm)}
.faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;padding:20px 24px;background:none;border:none;cursor:pointer;font-size:16px;font-weight:600;color:var(--color-text-primary);text-align:left;gap:16px}
.faq-icon{width:20px;height:20px;flex-shrink:0;transition:transform 0.3s;color:var(--color-text-muted)}
.faq-i.open .faq-icon{transform:rotate(180deg);color:var(--color-primary)}
.faq-a{max-height:0;overflow:hidden;transition:max-height 0.4s cubic-bezier(0.4,0,0.2,1)}
.faq-a-in{padding:0 24px 20px;font-size:15px;line-height:1.7;color:var(--color-text-secondary)}

/* CONTACT */
.s-contact{padding:100px 0}
.contact-w{text-align:center;max-width:600px;margin:0 auto}
.contact-w h2{font-size:clamp(28px,4vw,38px);font-weight:800;margin-bottom:16px}
.contact-w p{font-size:16px;color:var(--color-text-secondary);margin-bottom:36px;line-height:1.6}
.c-btns{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.c-btn{display:inline-flex;align-items:center;gap:10px;padding:14px 28px;border-radius:14px;font-size:15px;font-weight:600;text-decoration:none;transition:all 0.3s;border:1px solid rgba(104,110,238,0.15);color:var(--color-text-primary)}
.c-btn svg{width:20px;height:20px}
.c-btn.wa{background:#25D366;color:#fff;border-color:transparent}.c-btn.wa:hover{background:#1fba59;box-shadow:0 6px 20px rgba(37,211,102,0.35);transform:translateY(-2px)}
.c-btn.tg{background:#2AABEE;color:#fff;border-color:transparent}.c-btn.tg:hover{background:#229ED9;box-shadow:0 6px 20px rgba(42,171,238,0.35);transform:translateY(-2px)}
.c-btn.em{background:rgba(104,110,238,0.06)}.c-btn.em:hover{background:rgba(104,110,238,0.12);transform:translateY(-2px)}
.c-email{display:block;margin-top:20px;color:var(--color-primary);font-weight:600;text-decoration:none;font-size:15px}
.c-email:hover{text-decoration:underline}

/* FOOTER */


/* RESPONSIVE */
@media(max-width:768px){
.c-grid{grid-template-columns:1fr;max-width:400px}.c-card{aspect-ratio:16/10}
.tf-grid{grid-template-columns:1fr}
.s-hero{padding:100px 20px 60px}
.s-tariffs{padding:40px 16px 24px !important;width:calc(100% - 32px) !important;border-radius:24px}
.s-quiz{}
.quiz-w{max-width:100%}
.sec-hdr{margin-bottom:32px}
.sec-title{font-size:clamp(24px,5vw,32px)}
.tf-tabs{gap:8px;margin-bottom:20px}
.tf-tab{padding:8px 16px;font-size:13px}
.tf-cats{gap:6px;margin-bottom:20px}
.tf-cat{padding:6px 12px;font-size:12px}
.tf-card{border-radius:16px}
.tf-card-hdr{padding:16px 18px 12px;gap:5px}
.tf-card-badge{padding:4px 8px;font-size:11px}
.tf-card-badge img{width:16px;height:11px}
.tf-card-chip{padding:3px 8px;font-size:10px}
.tf-card-tag{padding:3px 8px;font-size:11px}
.tf-card-body{padding:0 18px 0}
.tf-card-title{font-size:17px;margin-bottom:6px}
.tf-card-desc{font-size:14px;-webkit-line-clamp:2}
.tf-card-footer{margin-top:14px}
.tf-card-from{font-size:14px;padding:12px}
.tf-card-cta{font-size:13px;padding:12px}
}
@media(max-width:480px){
.c-card-name{font-size:22px}
.s-tariffs{padding:32px 12px 20px !important;width:calc(100% - 24px) !important;border-radius:20px}
.s-quiz{}
.tf-card-hdr{padding:14px 14px 10px;gap:4px}
.tf-card-body{padding:0 14px 0}
.tf-card-title{font-size:16px}
.tf-card-desc{font-size:13px}
.tf-card-from{font-size:13px;padding:10px}
.tf-card-cta{font-size:12px;padding:10px}
}

/* Timeline fix: content vertically centered to dot */
.why-us-section .timeline-item{align-items:center}
.why-us-section .timeline-dot{top:auto}


/* === main.css extras === */
   PARALLAX MAIN STYLESHEET
   Imports all design system components
   ============================================ */
   CUSTOM OVERRIDES & PROJECT-SPECIFIC STYLES
   ============================================ */
body {
  padding-top: 80px; /* Account for fixed nav */
}
.indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  z-index: var(--z-notification);
  transition: transform var(--transition-base);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  text-align: center;
}
.mobile-menu-content .nav-item {
  font-size: var(--font-xl);
  font-weight: var(--weight-semibold);
}
html {
  scroll-padding-top: 100px;
}
::selection {
  background: var(--color-primary);
  color: white;
}
::-moz-selection {
  background: var(--color-primary);
  color: white;
}
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  z-index: var(--z-notification);
}
.skip-to-content:focus {
  top: 0;
}
.is-loading {
  pointer-events: none;
  opacity: 0.6;
}
.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
  transition: background-color var(--transition-base), 
              color var(--transition-base), 
              border-color var(--transition-base);
}
.preload * {
  transition: none !important;
}
.debug * {
  outline: 1px solid rgba(255, 0, 0, 0.1);
}
.debug *:hover {
  outline: 1px solid rgba(255, 0, 0, 0.3);
}
   DESKTOP SLOGAN SPACING OVERRIDE
   Ensures desktop spacing is preserved
   ============================================ */
@media (min-width: 1025px) {
  .slogan-section {
    padding-top: 36px !important; /* Reduced by 10% from 40px */
    padding-bottom: 36px !important; /* Reduced by 10% from 40px */
    margin-top: 54px !important; /* Reduced by 10% from 60px */
  }
}
.blog-countries-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.blog-country-card{border-radius:20px;overflow:hidden;position:relative;height:220px;text-decoration:none;display:block;transition:transform .3s,box-shadow .3s}
.blog-country-card:hover{transform:translateY(-4px);box-shadow:0 16px 40px rgba(0,0,0,.15)}
.blog-country-card img{width:100%;height:100%;object-fit:cover;display:block}
.blog-country-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.7),transparent 55%);display:flex;flex-direction:column;justify-content:flex-end;padding:24px}
.blog-country-name{color:#fff;font-size:24px;font-weight:800;margin-bottom:4px}
.blog-country-count{color:rgba(255,255,255,.75);font-size:13px;font-weight:500}
.blog-country-arrow{position:absolute;top:16px;right:16px;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.15);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;transition:background .3s}
.blog-country-card:hover .blog-country-arrow{background:rgba(255,255,255,.25)}
@media(max-width:1024px){.blog-countries-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.blog-countries-grid{grid-template-columns:1fr}.blog-country-card{height:180px}}

/* Category Switch Navigation */
.category-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 40px;
}




/* ============================================
   MOBILE OVERFLOW PREVENTION (v152)
   Prevents horizontal scroll without body overflow-x:hidden
   ============================================ */

/* Global box-sizing safety net */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent any wide element from causing horizontal scroll */
@media (max-width: 768px) {
    /* Nav - already responsive but ensure no overflow */
    nav {
        max-width: calc(100% - 32px);
    }
    
    /* Section card - tighten padding */
    .section-card {
        padding: 32px 16px !important;
        width: calc(100% - 32px) !important;
    }
    
    /* Contact section */
    .contact-section {
        width: calc(100% - 32px) !important;
        padding: 32px 16px !important;
    }
    
    /* Footer */
    footer, footer.footer {
        padding: 28px 16px !important;
        width: calc(100% - 32px) !important;
    }
    
    /* Flags section - contain animation */
    .flags-section {
        max-width: 100vw;
        overflow: hidden;
    }
    
    /* Phone number - prevent overflow on small screens */
    .phone-number {
        font-size: 22px;
        word-break: break-word;
    }
    
    .contact-email {
        font-size: 16px;
        word-break: break-word;
    }
    
    /* Contact buttons responsive */
    .contact-btn {
        min-width: unset;
        width: 100%;
    }
    
    /* Visa items - prevent overflow */
    .visa-item {
        padding: 12px 14px;
    }
    
    /* Service cards */
    .service-card {
        max-width: 100% !important;
    }
    
    /* Timeline fix */
    .timeline-content {
        max-width: calc(100vw - 80px);
        word-break: break-word;
    }
    
    /* Country page hero */
    .country-page-hero {
        width: calc(100% - 32px) !important;
    }
    
    /* Country page sections */
    .country-page-section {
        width: calc(100% - 32px);
        padding: 32px 16px;
    }
}

@media (max-width: 480px) {
    nav {
        max-width: calc(100% - 24px);
    }
    
    .section-card {
        padding: 24px 12px !important;
        width: calc(100% - 24px) !important;
    }
    
    .contact-section {
        width: calc(100% - 24px) !important;
        padding: 24px 12px !important;
    }
    
    footer, footer.footer {
        padding: 24px 12px !important;
        width: calc(100% - 24px) !important;
    }
    
    .phone-number {
        font-size: 20px;
    }
    
    .contact-email {
        font-size: 15px;
    }
    
    .country-page-hero {
        width: calc(100% - 24px) !important;
    }
    
    .country-page-section {
        width: calc(100% - 24px);
        padding: 24px 12px;
    }
    
    /* Prevent tables from overflowing */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    
    /* Prevent code blocks from overflowing */
    pre, code {
        overflow-x: auto;
        max-width: 100%;
        word-break: break-word;
    }
    
    /* Category buttons scroll fix */
    .category-buttons {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Prevent images from overflowing */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Prevent long words/URLs from breaking layout */
.article-body,
.article-sidebar,
.author-block,
.blog-grid,
.timeline-content p,
.faq-answer p,
.visa-info p,
.service-content p,
.contact-content p {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Fix slogan-title nowrap on mobile */
@media (max-width: 768px) {
    .slogan-title {
        white-space: normal !important;
        word-break: break-word;
    }
    
    .slogan-wrapper {
        overflow: hidden;
    }
}

/* MOBILE-ONLY overflow-x:hidden - safe because fixed nav works fine on mobile with this */
@media (max-width: 1024px) {
    body {
        overflow-x: hidden;
    }
}
