<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Receipt</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      font-size: 14px;
      color: #333;
      margin: 0;
      padding: 0;
    }
    .container {
      padding: 20px 40px;
    }
    .header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-top: 31px;
    }
    .logo img {
      width: 80px;
      height: auto;
    }
    .title {
      font-size: 28px;
      color: #F47817;
      font-weight: bold;
      text-align: right;
    }
    .date {
      text-align: right;
      font-size: 14px;
      margin-top: 5px;
    }
    .section {
      margin: 20px 0;
    }
    .highlight {
      background: #F47817;
      color: #fff;
      text-align: center;
      padding: 10px;
      font-size: 16px;
      font-weight: bold;
    }
    .details {
      display: flex;
      justify-content: space-between;
      margin: 15px 0;
    }
    .note {
      margin: 10px 0;
    }
    .footer {
      background: #F47817;
      color: #fff;
      display: flex;
      justify-content: space-between;
      padding: 10px 20px;
      position: absolute;
      bottom: 20px;
      left: 45px;
      right: 45px;
      font-size: 13px;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="header">
      <div class="logo">
        <img src="<%= absoluteLogoPath %>" alt="Logo">
        <p><strong><%= createdBy %></strong></p>
      </div>
      <div>
        <div class="title">RECEIPT</div>
        <div class="date">Date: <%= date %></div>
      </div>
    </div>

    <div class="highlight">Payment Received</div>
    <p><%= createdBy %></p>
    
    <div class="details">
      <div>
        <p><%= note %></p>
        <p><%= studentName %></p>
        <p><%= familyNames %></p>
        <p><%= familyAddress %></p>
      </div>
      <div>
        <p><%= amount %></p>
      </div>
    </div>

    <hr>
    <div class="section" style="text-align: center;">- Thank You -</div>
  </div>

  <div class="footer">
    <div><%= studentName %></div>
    <div>Receipt</div>
  </div>
</body>
</html>
