:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-text: #7f8c8d;
  --background-color: #f5f7fa;
  --card-bg: #fff;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 20px;
}

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

.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-header {
  background-color: var(--primary-color);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}

.card-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.id-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.card-body {
  display: flex;
  flex-wrap: wrap;
  padding: 30px;
  gap: 30px;
}

.info-section {
  flex: 1;
  min-width: 250px;
}

.info-section p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.info-section strong {
  color: var(--secondary-color);
  min-width: 80px;
  display: inline-block;
}

.photo-section {
  flex: 0 0 200px;
  text-align: center;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #f0f0f0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  padding: 30px;
  border-top: 1px solid #eee;
  gap: 30px;
}

.training-section,
.qrcode-section {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.training-section h3,
.qrcode-section h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-size: 1.3rem;
}

.training-photo {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qrcode {
  width: 180px;
  height: 180px;
  margin: 0 auto 15px;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qrcode-desc {
  color: var(--light-text);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .card-body,
  .card-footer {
    flex-direction: column;
    align-items: center;
  }

  .card-header h1 {
    font-size: 1.8rem;
  }

  .info-section {
    text-align: center;
  }

  .info-section strong {
    display: block;
    margin-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .card-container {
    padding: 10px;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: 20px;
  }

  .card-header h1 {
    font-size: 1.5rem;
  }

  .id-badge {
    position: static;
    display: inline-block;
    margin-top: 10px;
  }
}
