/* Template Switching Loading Animation */
:root {
    /* Primary Brand Colors */
    --primary-50: #f0f4ff;
    --primary-100: #e0edff;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-900: #1e3a8a;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Success & Status Colors */
    --success-500: #10b981;
    --success-600: #059669;
    --warning-500: #f59e0b;
    --error-500: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

.template-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.template-loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-lg);
}

.loading-text {
  font-size: 1.1rem;
  color: var(--gray-700);
  font-weight: 500;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.loading-subtext {
  font-size: 0.9rem;
  color: var(--gray-500);
  text-align: center;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Template switching animation */
.cv-preview {
  position: relative;
  transition: opacity 0.2s ease;
}

.cv-preview.switching {
  opacity: 0.3;
}

/* Layout Styles */
.cv-builder {
  background: #f5f5f5;
  min-height: 100vh;
  padding: 2rem;
  display: block !important; /* Ensure it's always visible when step-2 is active */
}

.builder-container {
  max-width: 1800px;
  margin: 0 auto;
  display: block !important;
}

.two-column-layout {
  display: flex !important;
  gap: 2rem;
  align-items: flex-start;
  min-height: calc(100vh - 100px);
}

.form-section {
  flex: 1;
  width: 50%;
  max-width: 800px;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-right: 2rem;
  display: block !important;
}

/* Preview section styles moved to preview-fixes.css to avoid duplicates */

main {
  background: #f5f5f5;
}

/* Template Selection Enhancements */
.template-card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--gradient-card);
  box-shadow: var(--shadow-md);
}

.template-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-500);
}

.template-card.active {
  border-color: var(--primary-500);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
  background: var(--primary-50);
}

.template-card.active::before {
  content: "✓ SELECTED";
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--primary-500);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

/* Step visibility controls */
#step-1 {
  display: block; /* Always show step 1 initially */
}

#step-1, #step-2, #step-3 {
  transition: opacity 0.3s ease;
}

#step-2, #step-3 {
  display: none; /* Hide steps 2 and 3 initially */
}

#step-2.hidden {
  display: none !important;
}

/* Responsive Layout */
@media (max-width: 1200px) {
  .two-column-layout {
    flex-direction: column;
  }
  
  .form-section,
  .preview-section {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }
  
  .preview-section {
    position: relative;
    top: 0;
    height: auto;
    margin-top: 2rem;
  }
  
  .cv-builder {
    padding: 1rem;
  }
}

/* CV Template Styles */
.cv-template {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: var(--space-2xl);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

/* Profile Image Styles for CV Templates */
.cv-profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0;
  border: 3px solid #e2e8f0;
}

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

.cv-profile-image.classic {
  border: 2px solid #2d3748;
}

.cv-profile-image.creative {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border: 3px solid #1e3a8a;
}

.cv-profile-image.executive {
  border: 3px solid #1a1a1a;
}

/* Template Header Updates */
.template-modern .cv-header,
.template-classic .cv-header,
.template-executive .cv-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.cv-header-content {
  flex: 1;
}

.template-creative .cv-sidebar {
  width: 200px;
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: white;
  padding: 30px 20px;
  float: left;
  height: 100vh;
  position: relative;
}

.template-creative .cv-main {
  margin-left: 220px;
  padding: 30px;
}

/* CV Template Specific Styles */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Bar */
.navbar {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-logo i {
  color: #fbbf24;
  font-size: 1.6rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fbbf24;
  font-weight: 600;
}

.nav-link i {
  font-size: 0.9rem;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    padding: 15px 20px;
    justify-content: flex-start;
    border-radius: 8px;
    margin-bottom: 5px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* CV Maker Header */
.cv-maker-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cv-maker-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

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

.header-content {
  position: relative;
  z-index: 2;
}

.header-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header-content h1 i {
  color: #fbbf24;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.header-content p {
  font-size: 1.3rem;
  margin-bottom: 35px;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.features-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.features-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 25px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.features-list span:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Global Stats */
.global-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 120px;
  transition: all 0.3s ease;
}

.stat:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 5px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

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

/* Template Confidence */
.template-confidence {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.template-confidence p {
  margin: 0;
  color: #059669;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Global Success Banner */
.global-success-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0ea5e9;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  animation: gentle-glow 3s ease-in-out infinite;
}

@keyframes gentle-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.2); }
  50% { box-shadow: 0 0 30px rgba(14, 165, 233, 0.4); }
}

.success-content {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.success-content i {
  font-size: 2rem;
  color: #0ea5e9;
  flex-shrink: 0;
}

.success-content strong {
  color: #0c4a6e;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 5px;
}

.success-content p {
  margin: 0;
  color: #0369a1;
  font-size: 0.95rem;
}

/* Steps Indicator */
.steps-indicator {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.step.active {
  opacity: 1;
}

.step.completed {
  opacity: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #1e3a8a;
  color: white;
  transform: scale(1.1);
}

.step.completed .step-number {
  background: #10b981;
  color: white;
}

.step span {
  font-weight: 500;
  text-align: center;
}

/* Step Headers */
.step-header {
  text-align: center;
  margin-bottom: 40px;
}

.step-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #2d3748;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.step-description {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* Template Badge Updates */
.template-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
  animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 4px 16px rgba(251, 191, 36, 0.5); }
}

.template-actions {
  text-align: center;
  margin-top: 50px;
}

.btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  border: none;
  padding: 18px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Section Status and Helpers */
.section-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 15px;
}

.section-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
  padding: 4px 12px;
  background: #f1f5f9;
  border-radius: 15px;
}

.section-status.complete {
  color: #10b981;
  background: #f0fdf4;
}

.section-status.complete i {
  color: #10b981;
}

.helper-text {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #4a5568;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.helper-text i {
  color: #0073B1;
  margin-top: 2px;
}

/* Quick Tips */
.quick-tips {
  background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
  border: 1px solid #fed7cc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.quick-tips h4 {
  color: #1e3a8a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-tips ul {
  list-style: none;
  padding: 0;
}

.quick-tips li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
  color: #4a5568;
}

.quick-tips li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1e3a8a;
  font-weight: bold;
}

/* Form Improvements */
.field-hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 4px;
  font-style: italic;
}

.char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 5px;
}

.char-counter .current {
  font-weight: 600;
}

.char-counter.warning .current {
  color: #f59e0b;
}

.char-counter.error .current {
  color: #ef4444;
}

.formatting-help {
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #1e40af;
}

/* Item Headers */
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: #f8fafc;
  border-radius: 8px;
}

.item-header h4 {
  margin: 0;
  color: #2d3748;
  font-size: 1.1rem;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: #e2e8f0;
}

/* Section Actions */
.section-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.section-help {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Checkbox Improvements */
.checkbox-group {
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #1e3a8a;
  border-color: #1e3a8a;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Progress Container */
.progress-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  min-width: 80px;
}

/* Enhanced Form Actions */
.actions-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.main-actions {
  display: flex;
  gap: 15px;
}

.form-progress-summary {
  text-align: center;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.completion-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6b7280;
  font-size: 0.9rem;
}

.completion-status.complete {
  color: #10b981;
}

.completion-status.complete i {
  color: #10b981;
}

/* Enhanced Preview */
.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: #9ca3af;
  text-align: center;
}

.preview-placeholder i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.preview-tips {
  margin-top: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.preview-tips h4 {
  color: #1e3a8a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-tips ul {
  list-style: none;
  padding: 0;
}

.preview-tips li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
  color: #4a5568;
  font-size: 0.9rem;
}

.preview-tips li:before {
  content: "💡";
  position: absolute;
  left: 0;
}

/* Step Display Control */
.step-hidden {
  display: none !important;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-card.featured {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  border: none;
}

.testimonial-card.featured .rating i {
  color: #fbbf24;
}

.rating {
  display: flex;
  gap: 3px;
  margin-bottom: 15px;
}

.rating i {
  color: #fbbf24;
  font-size: 1rem;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.author-info h5 {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.author-info span {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Global Impact Stats */
.global-impact {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  border-radius: 20px;
  margin-top: 40px;
}

.global-impact h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.impact-stats {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
}

.impact-stat {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 200px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 1.5rem;
  color: #fbbf24;
}

.stat-info {
  text-align: left;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1;
}

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

/* Features Showcase */
.features-showcase {
  padding: 80px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  transform: scaleX(0);
  transition: all 0.3s ease;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.feature-card h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #1e3a8a;
  font-weight: 700;
}

.feature-card p {
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
}

/* Global Tips */
.global-tips {
  padding: 60px 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.global-tips h2 {
  color: #1e3a8a;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.global-tips ul li {
  margin-bottom: 12px;
  padding-left: 10px;
}

.global-tips ul li strong {
  color: #1e3a8a;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  margin-top: 30px;
}

.cta-box h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fbbf24;
  color: #1f2937;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-cta:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

/* Global Message System */
.global-message {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  animation: slideInRight 0.5s ease;
}

.global-message.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.global-message.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.message-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  gap: 15px;
}

.message-content button {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.message-content button:hover {
  opacity: 1;
}

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

/* Enhanced Template Cards */
.template-card {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1);
}

.template-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.template-card.active {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2);
  border: 3px solid #1e3a8a;
}

.template-card.active::after {
  content: "✓ SELECTED";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

/* Global Footer */
.global-footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: 60px 0 0;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section.brand {
  padding-right: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-logo i {
  color: #fbbf24;
  font-size: 1.8rem;
}

.footer-section p {
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 25px;
}

.global-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.global-badges .badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #fbbf24;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-section ul li a:hover {
  opacity: 1;
  color: #fbbf24;
  transform: translateX(5px);
}

.footer-stats {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-stat {
  text-align: left;
}

.footer-stat strong {
  display: block;
  font-size: 1.5rem;
  color: #fbbf24;
  font-weight: 800;
}

.footer-stat span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #fbbf24;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.global-commitment {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.global-commitment span {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-section.brand {
    padding-right: 0;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .global-commitment {
    justify-content: center;
  }
}

.final-preview {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.preview-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 400px;
}

.cv-thumbnail {
  width: 300px;
  height: 400px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin: 0 auto 30px;
  background: white;
  overflow: hidden;
}

.download-actions {
  text-align: center;
}

.download-actions .btn-outline {
  margin-top: 10px;
  width: 100%;
}

.download-help {
  margin-top: 15px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.download-help small {
  color: #64748b;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.btn-primary.large {
  font-size: 1.2rem;
  padding: 15px 30px;
  margin-bottom: 20px;
}

.download-options {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.download-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.download-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.tip-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.tip-card h4 {
  color: #2d3748;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tip-card h4 i {
  color: #1e3a8a;
}

.tip-card ul {
  list-style: none;
  padding: 0;
}

.tip-card li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: #4a5568;
}

.tip-card li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #1e3a8a;
  font-weight: bold;
}

.share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.share-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

.share-btn.copy {
  background: #6b7280;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.restart-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Enhanced Button Styles */
.btn-primary, .btn-secondary, .btn-outline, .btn-success {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #e2e8f0;
  color: #4b5563;
}

.btn-outline:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #16a34a);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.add-btn {
  background: linear-gradient(135deg, #0073B1, #005885);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 115, 177, 0.3);
}

.remove-btn {
  background: #ef4444;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
}

.remove-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .builder-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .preview-section {
    order: -1;
  }
  
  .steps-indicator {
    flex-direction: column;
    gap: 20px;
  }
  
  .step {
    flex-direction: row;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .download-tips {
    grid-template-columns: 1fr;
  }
  
  .actions-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .restart-actions {
    flex-direction: column;
  }
}

/* Tooltips */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover:after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
}

/* Profile Image Upload */
.profile-image-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px dashed #e2e8f0;
  text-align: center;
}

.image-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.image-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  overflow: hidden;
  position: relative;
}

.image-preview:hover {
  border-color: #1e3a8a;
  transform: scale(1.05);
}

.image-preview i {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

.image-preview span {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.image-preview.has-image i,
.image-preview.has-image span {
  display: none;
}

#profileImage {
  display: none;
}

.image-controls {
  display: flex;
  gap: 10px;
}

.btn-outline.small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.image-upload-container .field-hint {
  margin-top: 10px;
  text-align: center;
}

/* Template Grid Update for 4 Templates */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Skills Categories */
.skills-categories {
  margin-top: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.skills-categories h4 {
  color: #2d3748;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skills-categories h4 i {
  color: #1e3a8a;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.category {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.category h5 {
  color: #2d3748;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.category p {
  color: #6b7280;
  font-size: 0.8rem;
  margin: 0;
}

/* Notification System */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  max-width: 400px;
  animation: slideIn 0.3s ease;
}

.notification.info {
  border-left: 4px solid #0073B1;
}

.notification.warning {
  border-left: 4px solid #f59e0b;
}

.notification.error {
  border-left: 4px solid #ef4444;
}

.notification.success {
  border-left: 4px solid #10b981;
}

.notification i {
  font-size: 1.2rem;
}

.notification.info i {
  color: #0073B1;
}

.notification.warning i {
  color: #f59e0b;
}

.notification.error i {
  color: #ef4444;
}

.notification.success i {
  color: #10b981;
}

.notification button {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  margin-left: auto;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Field Validation Styles */
.form-group.field-error input,
.form-group.field-error textarea,
.form-group.field-error select {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-group.field-success input,
.form-group.field-success textarea,
.form-group.field-success select {
  border-color: #10b981;
  background-color: #f0fdf4;
}

.form-group.field-error::after {
  content: "✗";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #ef4444;
  font-weight: bold;
}

.form-group.field-success::after {
  content: "✓";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #10b981;
  font-weight: bold;
}

/* Enhanced Form Group */
.form-group {
  position: relative;
}

.form-group label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
  display: block;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input:disabled {
  background: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #1e3a8a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced Step Visibility */
.step-hidden {
  display: none !important;
}

.step-visible {
  display: block !important;
}

#step-1.step-visible,
#step-2.step-visible,
#step-3.step-visible {
  display: block !important;
  animation: fadeIn 0.3s ease-in;
}

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

#step-2:not(.step-visible),
#step-3:not(.step-visible) {
  display: none !important;
}

#step-2.step-hidden {
  display: none !important;
}

#step-2.step-visible {
  display: block !important;
}

#step-3.step-hidden {
  display: none !important;
}

#step-3.step-visible {
  display: block !important;
}

/* Improved Mobile Responsiveness */
@media (max-width: 768px) {
  .cv-maker-header h1 {
    font-size: 2rem;
  }
  
  .steps-indicator {
    flex-direction: column;
    gap: 15px;
  }
  
  .step {
    flex-direction: row;
    justify-content: center;
  }
  
  .template-card {
    padding: 15px;
  }
  
  .form-section {
    padding: 20px;
  }
  
  .notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .template-card {
    border-width: 3px;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Template Selection */
.template-selection {
  padding: 60px 0;
  background: white;
}

.template-selection h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #2d3748;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.template-selection h2 i {
  color: #1e3a8a;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.template-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #1e3a8a;
}

.template-card.active {
  border-color: #1e3a8a;
  background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
}

.template-preview {
  margin-bottom: 15px;
}

.template-thumb {
  width: 120px;
  height: 150px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: white;
}

/* Template Thumbnails */
.modern-thumb .thumb-header {
  height: 30px;
  background: linear-gradient(135deg, #0073B1, #005885);
}

.classic-thumb .thumb-header {
  height: 25px;
  background: #2d3748;
  border-bottom: 2px solid #1e3a8a;
}

.creative-thumb {
  display: flex;
}

.creative-thumb .thumb-sidebar {
  width: 40px;
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
}

.creative-thumb .thumb-content {
  flex: 1;
  padding: 10px 8px;
}

.executive-thumb .thumb-header.dark {
  height: 35px;
  background: #1a1a1a;
}

.minimal-thumb {
  padding: 15px 10px;
}

.thumb-content {
  padding: 15px 10px;
}

.thumb-line {
  height: 8px;
  background: #e2e8f0;
  margin-bottom: 6px;
  border-radius: 2px;
}

.thumb-line.short {
  width: 60%;
}

.template-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 5px;
}

.template-card p {
  color: #666;
  font-size: 0.9rem;
}

/* CV Builder Interface */
.cv-builder {
  padding: 40px 0;
  background: #f8fafc;
}

.builder-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: start;
  min-height: calc(100vh - 200px);
}

/* Ensure sections are properly contained */
.form-section {
  grid-column: 1;
  width: 100%;
}

.preview-section {
  grid-column: 2;
  width: 100%;
}

/* Form Section */
.form-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.form-header {
  margin-bottom: 30px;
  text-align: center;
}

.form-header h2 {
  color: #2d3748;
  font-size: 1.8rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-header h2 i {
  color: #1e3a8a;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e3a8a, #1e40af);
  width: 0%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Form Styles */
.form-section-block {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.form-section-block:last-child {
  border-bottom: none;
}

.form-section-block h3 {
  color: #2d3748;
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-block h3 i {
  color: #1e3a8a;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 2px; /* Minimal spacing between rows */
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0; /* Remove any default margin */
}

.form-group label {
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 3px; /* Reduced from 5px */
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e3a8a;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

/* Dynamic Form Items */
.experience-item,
.education-item,
.language-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.remove-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.remove-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.add-btn {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.add-btn:hover {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  transform: translateY(-1px);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0073B1, #005885);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #005885, #0073B1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 115, 177, 0.3);
}

.btn-secondary {
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #475569;
}

/* Preview section styles consolidated - removed duplicates */

/* A4 Scale Responsive */
@media (max-width: 1400px) {
  .cv-preview {
    transform: scale(0.8) !important;
    margin: -40px auto;
  }
}

@media (max-width: 1200px) {
  .cv-preview {
    transform: scale(0.7) !important;
    margin: -60px auto;
  }
}

@media (max-width: 900px) {
  .cv-preview {
    transform: scale(0.6) !important;
    margin: -80px auto;
  }
}

.cv-preview {
  background: white;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: scale(1);
  transform-origin: top center;
  transition: transform 0.3s ease;
  min-height: 0;
  height: auto;
  width: 100%;
  max-width: 210mm;
  page-break-inside: avoid;
  overflow: visible;
  position: relative;
  display: block; /* Changed from flex to block */
  border: 1px solid #e5e7eb;
}

/* Ensure content displays properly */
.cv-preview .cv-template {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  width: 100% !important;
  display: block !important;
}

/* CV Template Styles */
.cv-template {
  width: 100%;
  height: auto;
  padding: 20mm;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  color: #2d3748;
  box-sizing: border-box;
  overflow: visible;
  page-break-inside: avoid;
  background: white;
  min-height: 0;
}

/* Template-specific fixes for preview */
.cv-preview .template-modern,
.cv-preview .template-classic,
.cv-preview .template-creative,
.cv-preview .template-ats {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 15mm !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
}

/* Fix grid layouts in preview */
.cv-preview .template-classic,
.cv-preview .template-creative {
  display: grid !important;
}

.cv-preview .template-classic {
  grid-template-columns: 2fr 1fr !important;
  gap: 20px !important;
}

.cv-preview .template-creative {
  grid-template-columns: 180px 1fr !important;
  gap: 0 !important;
}

.template-modern .cv-header {
  background: linear-gradient(135deg, #0073B1, #005885);
  color: white;
  padding: 25px;
  margin: -20mm -20mm 20px -20mm;
  text-align: center;
}

.template-modern .cv-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.2;
}

.template-modern .cv-title {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* A4 Print Optimizations for Modern Template */
@media print {
  .template-modern .cv-header {
    padding: 15mm !important;
    margin: -15mm -15mm 10mm -15mm !important;
  }
  
  .template-modern .cv-name {
    font-size: 18pt !important;
    line-height: 1.1 !important;
  }
  
  .template-modern .cv-title {
    font-size: 12pt !important;
  }
}

.template-modern .cv-contact {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.template-modern .cv-contact span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== Enhanced CV Template Styles - A4 Perfect & Professional Colors ===== */

/* 1. Modern Minimalist Template - Professional Blue Theme */
.template-modern {
  background: white;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  width: 210mm;  /* A4 width */
  min-height: 297mm;  /* A4 height */
  max-width: 210mm;
  margin: 0 auto;
  padding: 25mm 20mm;  /* Professional A4 margins */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #2c3e50;  /* Deep blue-grey for readability */
  line-height: 1.6;
  page-break-after: always;
  box-sizing: border-box;
}

.template-modern .cv-header {
  border-bottom: 3px solid #3498db;  /* Professional blue accent */
  padding-bottom: 20px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  padding: 25px;
  border-radius: 8px;
  margin: -10px -5px 30px -5px;
}

.template-modern .cv-name {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2c3e50;  /* Dark blue-grey */
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.template-modern .cv-title {
  font-size: 1.1rem;
  color: #3498db;  /* Professional blue */
  margin-bottom: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.template-modern .cv-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #5d6d7e;  /* Muted blue-grey */
}

.template-modern .cv-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ecf0f1;
  padding: 6px 12px;
  border-radius: 20px;
  border-left: 3px solid #3498db;
}

.template-modern .cv-contact i {
  color: #3498db;
}

.template-modern .cv-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3498db;
  position: relative;
}

.template-modern .cv-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #e74c3c;  /* Red accent */
}

.template-modern .cv-section {
  margin-bottom: 25px;
}

.template-modern .experience-item,
.template-modern .education-item {
  margin-bottom: 20px;
  padding: 15px;
  background: #fafbfc;
  border-radius: 6px;
  border-left: 4px solid #3498db;
}

/* 2. Classic Professional Template - Elegant Navy & Gold Theme */
.template-classic {
  background: #fefefe;
  font-family: 'Georgia', 'Times New Roman', serif;
  width: 210mm;  /* A4 width */
  min-height: 297mm;  /* A4 height */
  max-width: 210mm;
  margin: 0 auto;
  padding: 25mm 20mm;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #2c3e50;
  line-height: 1.7;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 30px;
  page-break-after: always;
  box-sizing: border-box;
}

.template-classic .cv-sidebar {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 25px 20px;
  border-radius: 10px;
  margin: -15px 0 -15px -15px;
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.template-classic .cv-main {
  padding-top: 0;
}

.template-classic .cv-header {
  grid-column: 1 / -1;
  text-align: center;
  border-bottom: 3px solid #f39c12;  /* Gold accent */
  padding-bottom: 20px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #ecf0f1 0%, #ffffff 100%);
  padding: 25px;
  border-radius: 8px;
  margin: -10px -15px 30px -15px;
}

.template-classic .cv-name {
  font-size: 2.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.template-classic .cv-title {
  font-size: 1.1rem;
  color: #f39c12;  /* Gold */
  margin-bottom: 15px;
  font-style: italic;
  font-weight: 500;
}

.template-classic .cv-contact {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #5d6d7e;
}

.template-classic .cv-contact span {
  background: #ecf0f1;
  padding: 6px 12px;
  border-radius: 15px;
  border-bottom: 2px solid #f39c12;
}

.template-classic .cv-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #f39c12;
  padding-bottom: 6px;
}

.template-classic .cv-sidebar .cv-section-title {
  color: #f39c12;
  border-bottom-color: #f39c12;
}

/* 3. Creative Designer Template - Modern Gradient & Vibrant Colors */
.template-creative {
  background: white;
  font-family: 'Inter', sans-serif;
  width: 210mm;  /* A4 width */
  min-height: 297mm;  /* A4 height */
  max-width: 210mm;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border-radius: 10px;
  page-break-after: always;
  box-sizing: border-box;
}

.template-creative .cv-sidebar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  padding: 30px 20px;
  position: relative;
  box-shadow: 5px 0 15px rgba(102, 126, 234, 0.3);
}

.template-creative .cv-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.template-creative .cv-sidebar > * {
  position: relative;
  z-index: 1;
}

.template-creative .cv-main {
  padding: 30mm 25mm 30mm 20mm;
  background: white;
}

.template-creative .cv-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(45deg, #ffffff, #f093fb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.template-creative .cv-title {
  font-size: 0.9rem;
  opacity: 0.95;
  margin-bottom: 20px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 15px;
  text-align: center;
}

.template-creative .cv-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 18px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.template-creative .cv-section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #f093fb);
  border-radius: 2px;
}

.template-creative .skills-grid {
  display: grid;
  gap: 10px;
}

.template-creative .skill-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 20px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.template-creative .skill-item:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* 4. ATS-Friendly Simple Template - Clean Black & White */
.template-ats {
  background: white;
  font-family: 'Arial', 'Helvetica', sans-serif;
  width: 210mm;  /* A4 width */
  min-height: 297mm;  /* A4 height */
  max-width: 210mm;
  margin: 0 auto;
  padding: 25mm 20mm;
  color: #000000;
  line-height: 1.5;
  font-size: 11pt;
  page-break-after: always;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.template-ats .cv-header {
  text-align: left;
  margin-bottom: 25mm;
  border-bottom: 2px solid #000000;
  padding-bottom: 10mm;
}

.template-ats .cv-name {
  font-size: 18pt;
  font-weight: bold;
  color: #000000;
  margin-bottom: 4mm;
  text-transform: uppercase;
  letter-spacing: 1pt;
}

.template-ats .cv-title {
  font-size: 12pt;
  color: #000000;
  margin-bottom: 8mm;
  font-weight: normal;
}

.template-ats .cv-contact {
  font-size: 10pt;
  color: #000000;
  margin-bottom: 15mm;
  line-height: 1.3;
}

.template-ats .cv-contact span {
  display: block;
  margin-bottom: 2mm;
}

.template-ats .cv-section-title {
  font-size: 12pt;
  font-weight: bold;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 6mm;
  margin-top: 15mm;
  border-bottom: 1px solid #000000;
  padding-bottom: 2mm;
  letter-spacing: 0.5pt;
}

.template-ats .cv-section {
  margin-bottom: 15mm;
}

.template-ats .experience-item,
.template-ats .education-item {
  margin-bottom: 10mm;
  page-break-inside: avoid;
}

.template-ats .experience-title,
.template-ats .education-degree {
  font-weight: bold;
  font-size: 11pt;
  margin-bottom: 1mm;
}

.template-ats .experience-company,
.template-ats .education-school {
  font-weight: normal;
  font-size: 11pt;
  margin-bottom: 1mm;
}

.template-ats .experience-dates,
.template-ats .education-dates {
  font-size: 10pt;
  color: #000000;
  margin-bottom: 3mm;
}

.template-ats ul {
  margin: 6mm 0;
  padding-left: 15mm;
}

.template-ats li {
  margin-bottom: 2mm;
  font-size: 10pt;
  line-height: 1.4;
}

/* Profile Image Styles for All Templates */
.cv-profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid #e5e7eb;
}

.template-modern .cv-profile-image {
  border-color: #2563eb;
}

.template-classic .cv-profile-image {
  border-color: #2c5282;
  width: 100px;
  height: 100px;
}

.template-creative .cv-profile-image {
  border-color: rgba(255, 255, 255, 0.3);
  width: 100px;
  height: 100px;
}

.template-ats .cv-profile-image {
  display: none; /* ATS systems can't process images */
}

/* Allow preview-only profile images to show in live preview */
.template-ats .cv-profile-image.ats-preview-only {
  display: block !important;
}

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

/* Template Thumbnails Enhanced */
.template-thumb {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
}

.template-card:hover .template-thumb {
  transform: scale(1.05);
  border-color: #2563eb;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.template-card.active .template-thumb {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Modern Template Thumbnail */
.modern-thumb {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 12px;
}

.modern-thumb .thumb-header {
  background: #2563eb;
  height: 20px;
  border-radius: 4px;
  margin-bottom: 8px;
  opacity: 0.8;
}

.modern-thumb .thumb-content .thumb-line {
  background: #1f2937;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 4px;
  opacity: 0.7;
}

.modern-thumb .thumb-content .thumb-line.short {
  width: 60%;
  opacity: 0.5;
}

/* Classic Template Thumbnail */
.classic-thumb {
  background: linear-gradient(135deg, #fffef7 0%, #f7fafc 100%);
  padding: 12px;
}

.classic-thumb .thumb-header {
  background: #2c5282;
  height: 18px;
  border-radius: 2px;
  margin-bottom: 8px;
  border-bottom: 2px solid #2c5282;
}

.classic-thumb .thumb-content .thumb-line {
  background: #2d3748;
  height: 2px;
  margin-bottom: 5px;
  border-radius: 1px;
}

.classic-thumb .thumb-content .thumb-line.short {
  width: 70%;
}

/* Creative Template Thumbnail */
.creative-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  gap: 0;
  padding: 0;
}

.creative-thumb .thumb-sidebar {
  background: rgba(255, 255, 255, 0.2);
  width: 35%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.creative-thumb .thumb-content {
  flex: 1;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.95);
}

.creative-thumb .thumb-content .thumb-line {
  background: #667eea;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 4px;
}

.creative-thumb .thumb-content .thumb-line.short {
  width: 50%;
}

/* ATS Template Thumbnail */
.ats-thumb {
  background: white;
  border: 2px solid #e5e7eb;
  padding: 12px;
}

.ats-thumb .thumb-header.simple {
  background: #f8f9fa;
  height: 16px;
  border: 1px solid #dee2e6;
  margin-bottom: 8px;
  border-radius: 2px;
}

.ats-thumb .thumb-content .thumb-line {
  background: #333333;
  height: 2px;
  margin-bottom: 4px;
  border-radius: 0;
}

.ats-thumb .thumb-content .thumb-line.short {
  width: 65%;
}

/* Template Card Enhancements */
.template-card {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.template-card:hover::before {
  left: 100%;
}

.template-card h3 {
  margin: 15px 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  transition: color 0.3s ease;
}

.template-card:hover h3 {
  color: #2563eb;
}

.template-card p {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.4;
}

.template-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Responsive Template Grid */
@media screen and (max-width: 768px) {
  .template-thumb {
    height: 100px;
  }
  
  .template-card h3 {
    font-size: 1rem;
  }
  
  .template-card p {
    font-size: 0.85rem;
  }
}

/* Enhanced CV Item Styles for Professional A4 Layout */
.cv-item {
  margin-bottom: 18mm;
  padding: 4mm 0;
  border-bottom: 1px solid #ecf0f1;
  page-break-inside: avoid;
}

.cv-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3mm;
  flex-wrap: wrap;
}

.cv-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2mm;
  line-height: 1.3;
}

.cv-item-company {
  font-size: 1rem;
  color: #3498db;
  font-weight: 500;
  margin-bottom: 1mm;
}

.template-classic .cv-item-company {
  color: #f39c12;
}

.template-creative .cv-item-company {
  color: #667eea;
}

.template-ats .cv-item-company {
  color: #000000;
  font-weight: normal;
}

.cv-item-date {
  font-size: 0.9rem;
  color: #7f8c8d;
  white-space: nowrap;
  margin-left: 20px;
  font-weight: 500;
  background: #ecf0f1;
  padding: 2mm 3mm;
  border-radius: 12px;
  font-style: italic;
}

.template-classic .cv-item-date {
  background: #f8f9fa;
  color: #6c757d;
}

.template-creative .cv-item-date {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.template-ats .cv-item-date {
  background: none;
  padding: 0;
  border-radius: 0;
  font-style: normal;
  color: #000000;
}

.cv-item-description {
  color: #5d6d7e;
  line-height: 1.6;
  margin-top: 3mm;
  text-align: justify;
}

.template-ats .cv-item-description {
  color: #000000;
  text-align: left;
}

/* Professional Skills Styling */
.cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 2mm;
  margin-top: 4mm;
}

.cv-skill {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 2mm 4mm;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: capitalize;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
}

.cv-skill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.template-classic .cv-skill {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.template-classic .cv-skill:hover {
  box-shadow: 0 4px 8px rgba(243, 156, 18, 0.4);
}

.template-creative .cv-skill {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.template-creative .cv-skill:hover {
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.template-ats .cv-skill {
  background: none;
  color: #000000;
  padding: 0;
  border-radius: 0;
  display: inline;
  box-shadow: none;
  font-weight: normal;
}

.template-ats .cv-skill:hover {
  transform: none;
  box-shadow: none;
}

/* Professional Languages Styling */
.cv-languages {
  margin-top: 4mm;
  display: grid;
  gap: 2mm;
}

.cv-language {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2mm 0;
  border-bottom: 1px solid #ecf0f1;
  transition: all 0.3s ease;
}

.cv-language:last-child {
  border-bottom: none;
}

.cv-language:hover {
  background: #f8f9fa;
  padding-left: 3mm;
  border-radius: 6px;
}

.cv-language-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.cv-language-level {
  font-size: 0.8rem;
  color: #7f8c8d;
  background: #ecf0f1;
  padding: 1mm 2mm;
  border-radius: 10px;
  font-weight: 500;
}

.template-classic .cv-language-level {
  background: #f8f9fa;
  color: #6c757d;
}

.template-creative .cv-language-level {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.template-ats .cv-language,
.template-ats .cv-language:hover {
  background: none;
  padding: 1mm 0;
  border-radius: 0;
}

.template-ats .cv-language-level {
  background: none;
  padding: 0;
  border-radius: 0;
  color: #000000;
}

/* Professional Profile Image Styling */
.cv-profile-image {
  width: 25mm;
  height: 25mm;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 5mm;
  border: 3mm solid #ecf0f1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.cv-profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.template-modern .cv-profile-image {
  border-color: #3498db;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.template-classic .cv-profile-image {
  border-color: #f39c12;
  width: 22mm;
  height: 22mm;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.template-creative .cv-profile-image {
  border-color: rgba(255, 255, 255, 0.4);
  width: 22mm;
  height: 22mm;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.template-ats .cv-profile-image {
  display: none; /* ATS systems can't process images */
}

/* Allow preview-only profile images to show in live preview */
.template-ats .cv-profile-image.ats-preview-only {
  display: block !important;
}

.cv-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.cv-profile-image:hover img {
  transform: scale(1.1);
}

/* Print Optimization for A4 */
@media print {
  .template-modern,
  .template-classic,
  .template-creative,
  .template-ats {
    width: 210mm !important;
    min-height: 297mm !important;
    max-width: 210mm !important;
    margin: 0 !important;
    padding: 20mm !important;
    box-shadow: none !important;
    page-break-after: always;
  }
  
  .cv-skill:hover,
  .cv-language:hover,
  .cv-profile-image:hover {
    transform: none !important;
    box-shadow: inherit !important;
  }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .cv-item-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cv-item-date {
    margin-left: 0;
    margin-top: 4px;
  }
  
  .cv-skills {
    gap: 6px;
  }
  
  .cv-skill {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}
@media screen and (max-width: 768px) {
  .template-modern,
  .template-classic,
  .template-creative,
  .template-ats {
    padding: 20px;
    margin: 10px;
  }
  
  .template-classic,
  .template-creative {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .template-creative .cv-sidebar {
    padding: 20px;
  }
  
  .template-modern .cv-name,
  .template-classic .cv-name {
    font-size: 2rem;
  }
  
  .template-modern .cv-contact,
  .template-classic .cv-contact {
    flex-direction: column;
    gap: 8px;
  }
}

/* Minimal Template */
.template-minimal {
  background: white;
  font-family: 'Inter', sans-serif;
}

.template-minimal .cv-header {
  margin-bottom: 40px;
}

.template-minimal .cv-name {
  font-size: 2.8rem;
  font-weight: 300;
  color: #2d3748;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

.template-minimal .cv-title {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
  font-weight: 400;
}

.template-minimal .cv-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #666;
}

/* Executive Template */
.template-executive {
  background: white;
}

.template-executive .cv-header {
  background: #1a1a1a;
  color: white;
  padding: 40px 30px;
  margin: -30px -30px 30px -30px;
}

.template-executive .cv-name {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.template-executive .cv-title {
  font-size: 1.4rem;
  color: #1e3a8a;
  margin-bottom: 20px;
  font-weight: 500;
}

.template-executive .cv-contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 0.95rem;
}

/* Common CV Section Styles */
.cv-section {
  margin-bottom: 20px;
  page-break-inside: avoid;
}

.cv-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid #1e3a8a;
  display: flex;
  align-items: center;
  gap: 8px;
  page-break-after: avoid;
}

.cv-section-title i {
  color: #1e3a8a;
  font-size: 1rem;
}

.cv-item {
  margin-bottom: 15px;
  page-break-inside: avoid;
}

/* A4 Print Optimizations for Content */
@media print {
  .cv-section {
    margin-bottom: 12px !important;
    page-break-inside: avoid !important;
  }
  
  .cv-section-title {
    font-size: 11pt !important;
    margin-bottom: 6px !important;
    padding-bottom: 2px !important;
    page-break-after: avoid !important;
  }
  
  .cv-item {
    margin-bottom: 8px !important;
    font-size: 9pt !important;
    line-height: 1.3 !important;
    page-break-inside: avoid !important;
  }
  
  .cv-preview {
    width: 210mm !important;
    height: auto !important;
    max-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    overflow: hidden !important;
  }
  
  .cv-template {
    padding: 12mm !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(297mm - 24mm) !important;
    overflow: hidden !important;
    font-size: 9pt !important;
    line-height: 1.2 !important;
  }
  
  /* Prevent headers from being too large in print */
  .template-modern .cv-header,
  .template-classic .cv-header,
  .template-executive .cv-header {
    padding: 10mm !important;
    margin: -12mm -12mm 8mm -12mm !important;
  }
  
  .template-creative .cv-sidebar {
    padding: 10mm 8mm !important;
    margin: -12mm 0 -12mm -12mm !important;
  }
  
  /* Compact text for print */
  .cv-name {
    font-size: 16pt !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
  }
  
  .cv-title {
    font-size: 11pt !important;
    margin-bottom: 8px !important;
  }
  
  .cv-contact {
    font-size: 8pt !important;
    gap: 8px !important;
  }
  
  .cv-item-description {
    font-size: 8pt !important;
    line-height: 1.2 !important;
  }
}

.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5px;
}

.cv-item-title {
  font-weight: 600;
  color: #2d3748;
  font-size: 1.1rem;
}

.cv-item-company {
  color: #666;
  font-style: italic;
}

.cv-item-date {
  color: #888;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cv-item-description {
  color: #555;
  line-height: 1.6;
  margin-top: 8px;
}

.cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-skill {
  background: #f1f5f9;
  color: #475569;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  border: 1px solid #e2e8f0;
}

.cv-languages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cv-language {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #1e3a8a;
}

.cv-language-name {
  font-weight: 500;
}

.cv-language-level {
  color: #666;
  font-size: 0.85rem;
}

/* SEO Content Section */
.seo-content {
  padding: 60px 0;
  background: white;
}

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

.content-block h2 {
  color: #2d3748;
  font-size: 1.8rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-block h2::before {
  content: '📄';
  font-size: 1.5rem;
}

.content-block p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 15px;
}

.content-block ul {
  list-style: none;
  padding: 0;
}

.content-block ul li {
  color: #555;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.content-block ul li::before {
  content: '✓';
  color: #1e3a8a;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.content-block ul li strong {
  color: #2d3748;
}

/* Responsive Design */
@media (max-width: 768px) {
  .builder-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .preview-section {
    position: static;
    max-height: none;
  }
  
  .cv-preview {
    transform: scale(0.8);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .cv-maker-header {
    padding: 40px 0;
  }
  
  .header-content h1 {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .features-list {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .template-thumb {
    width: 100px;
    height: 120px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .form-section,
  .preview-section {
    padding: 20px;
  }
  
  .cv-preview {
    transform: scale(0.6);
    width: 100%;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .template-creative {
    grid-template-columns: 1fr;
  }
  
  .template-creative .cv-sidebar {
    margin: -20px -20px 20px -20px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .cv-preview {
    transform: scale(0.5);
  }
  
  .template-selection h2 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 5px;
  }
  
  .builder-container {
    padding: 0 10px;
  }
}

/* Print Styles */
@media print {
  @page {
    size: A4;
    margin: 0;
  }
  
  body * {
    visibility: hidden;
  }
  
  .cv-preview,
  .cv-preview * {
    visibility: visible;
  }
  
  .cv-preview {
    position: absolute;
    left: 0;
    top: 0;
    width: 210mm !important;
    height: 297mm !important;
    transform: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    page-break-inside: avoid;
  }
  
  .cv-template {
    padding: 15mm !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    page-break-inside: avoid;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }
}

/* Scrollbar Styles */
.form-section::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
  width: 6px;
}

.form-section::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.form-section::-webkit-scrollbar-thumb,
.preview-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #1e3a8a;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success/Error Messages */
.message {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.message i {
  font-size: 1.1rem;
}

/* AI-Powered Import Section */
.ai-import-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px;
  margin: 30px 0;
  color: white;
  text-align: center;
}

.ai-import-section h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.ai-import-section p {
  margin-bottom: 30px;
  opacity: 0.9;
}

.import-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.import-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.import-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.import-btn i {
  font-size: 24px;
  opacity: 0.9;
}

.import-btn div {
  text-align: left;
}

.import-btn strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.import-btn span {
  font-size: 14px;
  opacity: 0.8;
}

/* AI-Enhanced Fields */
.ai-enhanced-field {
  position: relative;
}

.ai-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: all 0.3s ease;
}

.ai-enhanced-field:hover .ai-tools {
  opacity: 1;
}

.ai-tool-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  color: white;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.ai-tool-btn i {
  font-size: 10px;
}

/* Download Formats */
.download-formats {
  margin-bottom: 30px;
}

.download-formats h4 {
  text-align: center;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.format-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.format-btn {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #4a5568;
}

.format-btn:hover {
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.format-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

.format-btn.primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.format-btn i {
  font-size: 24px;
  opacity: 0.8;
}

.format-btn div {
  text-align: left;
}

.format-btn strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.format-btn span {
  font-size: 14px;
  opacity: 0.7;
}

/* Download Bonus */
.download-bonus {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 20px;
  padding: 25px;
  color: white;
  text-align: center;
}

.bonus-features h4 {
  margin-bottom: 20px;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.bonus-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.bonus-item i {
  font-size: 20px;
  opacity: 0.9;
}

.bonus-item span {
  font-size: 14px;
  font-weight: 500;
}

/* Feature Cards Enhancement */
.feature-card.premium {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: scale(1.05);
  position: relative;
}

.feature-card.premium .feature-icon {
  background: rgba(255, 255, 255, 0.2);
}

.feature-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff6b6b;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Competitive Advantage Section */
.competitive-advantage {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 80px 0;
  color: white;
}

.competitive-advantage .section-header h2 {
  color: white;
}

.competitive-advantage .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 50px 0;
}

.comparison-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.comparison-card.us {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 3px solid #ffd700;
  transform: scale(1.05);
  position: relative;
}

.comparison-card.us::before {
  content: "👑 BEST CHOICE";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffd700;
  color: #1a1a1a;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 12px;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.comparison-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 18px;
}

.comparison-header .logo i {
  font-size: 20px;
}

.rank {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.comparison-card .features-list {
  margin: 20px 0;
}

.comparison-card .feature {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature.limited {
  opacity: 0.7;
}

.feature.missing {
  opacity: 0.5;
}

.comparison-card .price {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 15px;
  margin-top: 20px;
}

.comparison-card.us .price {
  background: rgba(255, 215, 0, 0.3);
  color: #ffd700;
}

/* Winner Announcement */
.winner-announcement {
  background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
  border-radius: 25px;
  padding: 40px;
  text-align: center;
  color: #1a1a1a;
  margin-top: 40px;
}

.winner-content h3 {
  font-size: 32px;
  margin-bottom: 15px;
}

.winner-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.8;
}

.winner-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.winner-stats .stat {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.winner-stats .stat strong {
  display: block;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.winner-stats .stat span {
  font-size: 14px;
  opacity: 0.8;
}

.btn-champion {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-champion:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-champion i {
  font-size: 20px;
}

/* Mobile Responsiveness for New Features */
@media (max-width: 768px) {
  .import-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .import-btn {
    padding: 15px;
    gap: 10px;
  }
  
  .format-options {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
  }
  
  .format-btn {
    padding: 15px;
    gap: 10px;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .comparison-card.us {
    transform: none;
  }
  
  .winner-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .ai-tools {
    position: static;
    opacity: 1;
    justify-content: center;
    margin-top: 10px;
  }
  
  .ai-enhanced-field textarea {
    padding-right: 15px;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
}

.modal-header {
  padding: 30px 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  color: #1a1a1a;
}

.modal-close {
  background: none;
  border: none;
  font-size: 30px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #333;
}

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

/* AI Assistant Styles */
.ai-assistant {
  min-width: 500px;
}

.ai-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.ai-option-btn {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #4a5568;
  text-align: left;
}

.ai-option-btn:hover {
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.ai-option-btn i {
  font-size: 24px;
  color: #667eea;
}

.ai-option-btn strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
  color: #1a1a1a;
}

.ai-option-btn span {
  font-size: 14px;
  opacity: 0.7;
}

.ai-tips {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
}

.ai-tips h4 {
  margin-bottom: 15px;
  color: #1a1a1a;
}

.ai-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-tips li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.ai-tips li::before {
  content: "💡";
  position: absolute;
  left: 0;
  top: 8px;
}

/* Industry Examples Styles */
.industry-examples {
  min-width: 600px;
}

.industry-tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.industry-tab {
  background: #f1f5f9;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: #4a5568;
}

.industry-tab.active,
.industry-tab:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.industry-content {
  background: #f8fafc;
  border-radius: 15px;
  padding: 25px;
  margin-top: 20px;
}

.industry-info h4 {
  color: #1a1a1a;
  margin-bottom: 15px;
}

.industry-info p {
  margin-bottom: 10px;
  color: #4a5568;
}

.industry-info ul {
  margin: 15px 0;
  padding-left: 0;
}

.industry-info li {
  color: #2d3748;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Global Message Styles */
.global-message {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideInRight 0.3s ease;
}

.global-message.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.global-message.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.global-message.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.message-content {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.message-content i {
  font-size: 18px;
  opacity: 0.9;
}

.message-content span {
  flex: 1;
  font-weight: 500;
}

.message-content button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.message-content button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

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

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* Mobile Responsiveness for Modals */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    margin: 20px;
  }
  
  .modal-header {
    padding: 20px 20px 0;
  }
  
  .modal-body {
    padding: 0 20px 20px;
  }
  
  .ai-assistant,
  .industry-examples {
    min-width: auto;
  }
  
  .ai-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .industry-tabs {
    flex-direction: column;
    gap: 8px;
  }
  
  .global-message {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ===== A4 CV PREVIEW OPTIMIZATION ===== */

/* Preview Container Optimization for A4 Templates */
.preview-container {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  min-height: 600px;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.cv-preview {
  max-width: 100%;
  transform-origin: top center;
  transition: transform 0.3s ease;
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

/* Scale down for preview */
@media screen and (min-width: 1200px) {
  .cv-preview {
    transform: scale(0.75);
  }
}

@media screen and (max-width: 1199px) {
  .cv-preview {
    transform: scale(0.65);
  }
}

@media screen and (max-width: 768px) {
  .cv-preview {
    transform: scale(0.5);
  }
  
  .template-modern,
  .template-classic,
  .template-creative,
  .template-ats {
    padding: 15mm 12mm;
    min-height: 200mm;
  }
  
  .template-classic {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .template-creative {
    grid-template-columns: 1fr;
  }
  
  .template-creative .cv-sidebar {
    padding: 20px;
    order: 2;
  }
  
  .template-creative .cv-main {
    padding: 20px;
    order: 1;
  }
}

/* Ensure proper text rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Professional Typography */
.template-modern,
.template-classic,
.template-creative,
.template-ats {
  text-rendering: optimizeLegibility;
}

/* Enhanced Focus States for Accessibility */
.template-card:focus {
  outline: 3px solid #3498db;
  outline-offset: 2px;
}

/* Print-friendly colors */
@media print {
  .template-modern .cv-section-title::after {
    background: #333 !important;
  }
  
  .template-classic .cv-contact span {
    background: #f5f5f5 !important;
    border-bottom-color: #333 !important;
  }
  
  .template-creative .cv-sidebar {
    background: #333 !important;
    color: white !important;
  }
  
  .cv-preview {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Step 3 - Download Section Styles */
.download-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.download-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.download-header {
  margin-bottom: 40px;
}

.download-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
}

.download-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.final-preview {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.cv-thumbnail {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 1.1rem;
}

.download-actions {
  text-align: left;
}

.download-formats h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.format-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.download-bonus h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.download-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.tip-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

.tip-card h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.tip-card ul {
  list-style: none;
  padding: 0;
}

.tip-card li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.tip-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: bold;
}

.share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.restart-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-outline:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive for Download Section */
@media (max-width: 768px) {
  .download-section {
    padding: 40px 0;
  }
  
  .download-header h2 {
    font-size: 2rem;
  }
  
  .preview-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .format-options {
    grid-template-columns: 1fr;
  }
  
  .bonus-grid {
    grid-template-columns: 1fr;
  }
  
  .download-tips {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .restart-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .share-buttons {
    flex-direction: column;
  }
}

/* ==========================================
   ENHANCED TEMPLATE STYLES FOR LIVE PREVIEW
   ========================================== */

/* Template Base Styles Override */
.cv-template {
  background: white !important;
  font-family: 'Inter', sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  width: 100% !important;
  min-height: 0 !important;
}

/* Modern Template Enhanced */
.template-modern {
  background: white !important;
  padding: 0 !important;
}

.template-modern .cv-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
  color: white !important;
  padding: 30px !important;
  margin: 0 !important;
  text-align: center !important;
  border-radius: 0 !important;
}

.template-modern .cv-name {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.template-modern .cv-title {
  font-size: 1.2rem !important;
  font-weight: 400 !important;
  margin-bottom: 20px !important;
  color: white !important;
  opacity: 0.9 !important;
}

.template-modern .cv-contact {
  display: flex !important;
  justify-content: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
  font-size: 0.9rem !important;
  color: white !important;
}

.template-modern .cv-section {
  padding: 0 30px !important;
  margin-bottom: 25px !important;
}

.template-modern .cv-section-title {
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  color: #1e3a8a !important;
  margin-bottom: 15px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid #3b82f6 !important;
}

/* Classic Template Enhanced */
.template-classic {
  background: white !important;
  font-family: 'Georgia', serif !important;
  padding: 30px !important;
  color: #333 !important;
}

.template-classic .cv-header {
  text-align: center !important;
  margin-bottom: 30px !important;
  padding-bottom: 20px !important;
  border-bottom: 2px solid #333 !important;
}

.template-classic .cv-name {
  font-size: 2.2rem !important;
  font-weight: bold !important;
  margin-bottom: 10px !important;
  color: #333 !important;
}

.template-classic .cv-title {
  font-size: 1.1rem !important;
  font-style: italic !important;
  margin-bottom: 15px !important;
  color: #555 !important;
}

.template-classic .cv-section-title {
  font-size: 1.2rem !important;
  font-weight: bold !important;
  color: #333 !important;
  margin-bottom: 15px !important;
  padding-bottom: 5px !important;
  border-bottom: 2px solid #333 !important;
  text-transform: uppercase !important;
}

/* Creative Template Enhanced */
.template-creative {
  display: flex !important;
  background: white !important;
  min-height: 500px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.template-creative .cv-sidebar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  width: 35% !important;
  padding: 30px 25px !important;
  display: flex !important;
  flex-direction: column !important;
}

.template-creative .cv-main {
  width: 65% !important;
  padding: 30px !important;
  background: white !important;
}

.template-creative .cv-name {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  text-align: center !important;
  color: white !important;
}

.template-creative .cv-title {
  font-size: 1rem !important;
  font-weight: 400 !important;
  margin-bottom: 25px !important;
  text-align: center !important;
  color: white !important;
  opacity: 0.9 !important;
}

.template-creative .cv-sidebar .cv-section-title {
  color: white !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-bottom: 15px !important;
  margin-top: 25px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(255,255,255,0.3) !important;
}

.template-creative .cv-main .cv-section-title {
  color: #333 !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  margin-bottom: 15px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid #667eea !important;
}

/* ATS Template Enhanced */
.template-ats {
  background: white !important;
  font-family: 'Arial', sans-serif !important;
  padding: 30px !important;
  color: #000 !important;
  line-height: 1.4 !important;
}

.template-ats .cv-header {
  text-align: center !important;
  margin-bottom: 25px !important;
  padding-bottom: 15px !important;
  border-bottom: 1px solid #000 !important;
}

.template-ats .cv-name {
  font-size: 2rem !important;
  font-weight: bold !important;
  margin-bottom: 8px !important;
  color: #000 !important;
  text-transform: uppercase !important;
}

.template-ats .cv-title {
  font-size: 1rem !important;
  font-weight: normal !important;
  margin-bottom: 15px !important;
  color: #000 !important;
}

.template-ats .cv-section-title {
  font-size: 1.1rem !important;
  font-weight: bold !important;
  color: #000 !important;
  margin-bottom: 12px !important;
  padding-bottom: 3px !important;
  border-bottom: 1px solid #000 !important;
  text-transform: uppercase !important;
}

/* Profile Images for All Templates */
.cv-profile-image {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  margin: 0 auto 20px !important;
  overflow: hidden !important;
  border: 4px solid rgba(255,255,255,0.2) !important;
}

.template-classic .cv-profile-image {
  border: 3px solid #333 !important;
}

.cv-profile-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .template-creative {
    flex-direction: column !important;
  }
  
  .template-creative .cv-sidebar,
  .template-creative .cv-main {
    width: 100% !important;
  }
  
  .template-modern .cv-section {
    padding: 0 20px !important;
  }
}
