<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Certificate of Completion</title>
  <style>
    body {
      font-family: 'Helvetica', 'Arial', sans-serif;
      margin: 0;
      padding: 0;
    }
    .certificate {
      width: 100%;
      height: 100%;
      position: relative;
      text-align: center;
    }
    .border {
      position: absolute;
      top: 20px;
      left: 20px;
      right: 20px;
      bottom: 20px;
      border: 2px solid #0d4d8c;
      border-radius: 5px;
    }
    .inner-border {
      position: absolute;
      top: 30px;
      left: 30px;
      right: 30px;
      bottom: 30px;
      border: 1px solid #b5c9e3;
      border-radius: 3px;
    }
    .header {
      margin-top: 60px;
      font-size: 48px;
      color: #0d4d8c;
      font-weight: bold;
      text-transform: uppercase;
    }
    .sub-header {
      margin-top: 20px;
      font-size: 24px;
      color: #333;
    }
    .recipient {
      margin-top: 50px;
      font-size: 36px;
      color: #000;
      font-weight: bold;
    }
    .course {
      margin-top: 30px;
      font-size: 28px;
      color: #0d4d8c;
      font-weight: bold;
    }
    .date {
      margin-top: 20px;
      font-size: 22px;
      color: #333;
    }
    .signature {
      margin-top: 50px;
      text-align: center;
    }
    .signature-line {
      width: 250px;
      margin: 0 auto;
      border-bottom: 1px solid #0d4d8c;
    }
    .signature-name {
      margin-top: 10px;
      font-size: 18px;
      font-weight: bold;
    }
    .signature-title {
      font-size: 16px;
      color: #666;
    }
    .footer {
      position: absolute;
      bottom: 40px;
      width: 100%;
      text-align: center;
      font-size: 12px;
      color: #999;
    }
    .logo {
      position: absolute;
      top: 40px;
      left: 40px;
      width: 150px;
    }
  </style>
</head>
<body>
  <div class="certificate">
    <div class="border"></div>
    <div class="inner-border"></div>
    <img class="logo" src="{{logo_url}}" alt="Logo">
    <div class="header">Certificate of Completion</div>
    <div class="sub-header">This certifies that</div>
    <div class="recipient">{{attendee_name}}</div>
    <div class="sub-header">has successfully completed</div>
    <div class="course">{{event_name}}</div>
    <div class="date">{{event_date}}</div>
    <div class="signature">
      <div class="signature-line"></div>
      <div class="signature-name">{{instructor_name}}</div>
      <div class="signature-title">Instructor</div>
    </div>
    <div class="footer">
      Certificate ID: {{certificate_number}} | Issued: {{issue_date}}
    </div>
  </div>
</body>
</html>