<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Student Result Sheet</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;  
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  padding: 20px;
  color: #333;
}
.result-sheet {
  background: #fff;
  max-width: 900px;
  margin: auto;
  padding: 25px;
  border: 1px solid #ccc;
  border-radius: 10px;
}
.school-header {
  text-align: center;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
    .school-header img {
      width: 80px;
      height: 80px;
      object-fit: cover;
      border-radius: 50%;
    }
    .school-header h1 {
      font-size: 26px;
      margin-top: 10px;
    }
    .school-header h4 {
      font-size: 16px;
      font-weight: normal;
    }

    .student-info {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      margin-bottom: 20px;
      font-size: 15px;
    }
    .student-info p {
      margin: 5px 0;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 20px;
    }

    table, th, td {
      border: 1px solid #555;
    }

    th, td {
      padding: 10px;
      text-align: center;
      font-size: 14px;
    }

    th {
      background-color: #062d8f;
      color: white;
    }

    .summary {
      margin-top: 15px;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
    }

    .summary div {
      margin: 5px 0;
    }

    .comment-section {
      margin-top: 25px;
    }

    .comment-section p {
      font-size: 14px;
      line-height: 1.6;
    }

    .signatures {
      display: flex;
      justify-content: space-between;
      margin-top: 30px;
      font-size: 14px;
    }

    .sign-box {
      width: 45%;
      border-top: 1px solid #444;
      text-align: center;
      padding-top: 5px;
    }

    @media(max-width: 600px) {
      .student-info {
        flex-direction: column;
      }
      .summary {
        flex-direction: column;
      }
      .signatures {
        flex-direction: column;
        gap: 20px;
      }
      .sign-box {
        width: 100%;
      }
    }
  </style>
</head>
<body>
  <div class="result-sheet">
    <div class="school-header">
      <img src="logo.png" alt="School Logo">
      <h1>Bright Future Academy</h1>
      <h4>123 Knowledge Avenue, Education City, Nigeria</h4>
      <h4>Tel: 08012345678 | Email: info@brightfuture.edu.ng</h4>
      <h4><strong>Student Result Sheet – First Term 2024/2025</strong></h4>
    </div>

    <div class="student-info">
      <p><strong>Name:</strong> John Doe</p>
      <p><strong>Class:</strong> Primary 6</p>
      <p><strong>Admission No:</strong> 1025</p>
      <p><strong>Gender:</strong> Male</p>
      <p><strong>Session:</strong> 2024/2025</p>
      <p><strong>Term:</strong> First Term</p>
    </div>

    <table>
      <thead>
        <tr>
          <th>Subject</th>
          <th>CA (30)</th>
          <th>Exam (70)</th>
          <th>Total (100)</th>
          <th>Grade</th>
          <th>Remark</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Mathematics</td>
          <td>25</td>
          <td>60</td>
          <td>85</td>
          <td>A</td>
          <td>Excellent</td>
        </tr>
        <tr>
          <td>English</td>
          <td>24</td>
          <td>58</td>
          <td>82</td>
          <td>A</td>
          <td>Very Good</td>
        </tr>
        <tr>
          <td>Basic Science</td>
          <td>20</td>
          <td>50</td>
          <td>70</td>
          <td>B</td>
          <td>Good</td>
        </tr>
        <tr>
          <td>Social Studies</td>
          <td>22</td>
          <td>55</td>
          <td>77</td>
          <td>B</td>
          <td>Very Good</td>
        </tr>
        <!-- Add more rows as needed -->
      </tbody>
    </table>

    <div class="summary">
      <div><strong>Total Score:</strong> 314</div>
      <div><strong>Average:</strong> 78.5</div>
      <div><strong>Position:</strong> 3rd</div>
      <div><strong>Attendance:</strong> 56/60</div>
    </div>

    <div class="comment-section">
      <p><strong>Teacher’s Comment:</strong> John has shown great improvement this term. Keep it up!</p>
      <p><strong>Principal’s Comment:</strong> An impressive performance. We expect even more next term.</p>
    </div>

    <div class="signatures">
      <div class="sign-box">Class Teacher's Signature</div>
      <div class="sign-box">Principal's Signature</div>
    </div>
  </div>
</body>
</html>
