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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #e8e4df;
  font-family: "Manrope", sans-serif;
}

.certificate {
  position: relative;
  width: 1024px;
  height: 768px;
  overflow: hidden;
}

.certificate-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-content {
  position: relative;
  z-index: 1;
  padding: 60px 70px 50px 80px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Logo */
.logo {
  margin-bottom: 2px;
}

.kita-logo {
  height: 50px;
  width: auto;
}

.subtitle {
  font-size: 18x;
  font-weight: 500;
  letter-spacing: 3.5px;
  color: #666;
  margin-top: 32px;
  margin-bottom: 12px;
}

.title {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 2px;
  margin-bottom: 36px;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  width: 320px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: #1e471a;
  opacity: 0.5;
}

.leaf-icon {
  flex-shrink: 0;
}

.course-name {
  font-size: 24px;
  font-weight: 600;
  color: #1e471a;
  margin-bottom: 8px;
}

.presented-to {
  font-size: 14px;
  font-weight: 400;
  color: #777;
  margin-bottom: 4px;
}

.recipient-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 62px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.orange-separator {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 430px;
  margin-bottom: 8px;
}

.separator-line {
  flex: 1;
  height: 1px;
  background: #f48c5b;
}

.separator-dot {
  width: 6px;
  height: 6px;
  background: #f48c5b;
  border-radius: 50%;
  flex-shrink: 0;
}

.at-company {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.at-text {
  font-size: 19px;
  font-weight: 600;
  color: #1e471a;
}

.description {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 420px;
}

.issued-by {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: auto;
  font-size: 16px;
  color: #666;
}

.issued-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Signatures */
.signatures {
  display: flex;
  gap: 40px;
  align-items: stretch;
  padding-top: 8px;
}

.signature-divider {
  width: 1px;
  height: 60px;
  background: #1e471a;
  align-self: center;
}

.signature-block {
  display: flex;
  flex-direction: column;
}

.signature-handwriting {
  font-family: "Allura", cursive;
  font-size: 26px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.signature-line {
  width: 200px;
  height: 1px;
  background: #bbb;
  margin-bottom: 6px;
}

.signature-name {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 1px;
}

.signature-title {
  font-size: 12px;
  font-weight: 300;
  margin-bottom: 2px;
}

.signature-date {
  font-size: 10px;
  font-weight: 400;
  color: #999;
  margin-top: 4px;
}

/* Badge */
.badge {
  position: absolute;
  top: 220px;
  right: 90px;
  z-index: 2;
  width: 180px;
  height: 180px;
}

.badge-svg {
  width: 100%;
  height: 100%;
}

@media print {
  @page {
    size: 1024px 768px;
    margin: 0;
  }

  body {
    min-height: auto;
    background: none;
  }

  .certificate {
    width: 100%;
    height: 100%;
  }
}
