<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Styled Table</title>
  <style>
    body {
      font-family: 'Georgia', serif;
      padding: 2rem;
      background-color: #fff;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      border-spacing: 0;
      font-size: 16px;
    }

    caption {
      caption-side: top;
      font-weight: bold;
      text-align: left;
      background-color: #eaf3fb;
      padding: 0.75rem 1rem;
      font-size: 18px;
    }

    caption span {
      color: #007acc;
    }

    th, td {
      padding: 10px 15px;
      text-align: left;
      vertical-align: top;
      border-bottom: 1px solid #ccc;
    }

    th {
      font-weight: bold;
      border-bottom: 3px solid #007acc;
    }

    tr:last-child td {
      border-bottom: 3px solid #007acc;
    }

    td em {
      font-style: italic;
    }

    .table-caption {
      background-color: #eaf6ff; /* light blue background */
      border-top: 2px solid #00aaff; /* top border */
      padding: 10px;
      font-family: 'Georgia', serif;
      font-size: 18px;
    }

    .table-caption .label {
      color: #00aaff;
      font-weight: bold;
    }

    .table-caption .caption {
      font-weight: bold;
    }

    .note {
        font-size: 16px;
        padding: 10px;
    }
  </style>
</head>
<body>
    <div class="table-caption">
        <span class="label">Table 2</span>
        <span class="caption">Comparisons of features between the clusters classified by Louvain clustering unsupervised machine learning.</span>
    </div>
    <table class="table table-bordered table-condensed table-hover">
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Variables</th>
<th>Cluster 1 (<i>n</i> = 57)</th>
<th>Cluster 2 (<i>n</i> = 51)</th>
<th>Cluster 3 (<i>n</i> = 42)</th>
<th>Cluster 4 (<i>n</i> = 41)</th>
<th><i>p</i></th>
</tr>
</thead>
<tbody>
<tr>
<td>EOAQ</td>
<td>(-)OA = 31 ; (+)OA = 26</td>
<td>(-)OA = 30 ; (+)OA = 21</td>
<td>(-)OA = 17 ; (+)OA = 25</td>
<td>(-)OA = 12 ; (+)OA = 29</td>
<td>0.019</td>
</tr>
<tr>
<td>Sex</td>
<td>M = 11 ; F = 46</td>
<td>M = 51 ; F = 0</td>
<td>M = 21 ; F = 21</td>
<td>M = 26 ; F = 15</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>Age</td>
<td>62.07 ± 5.60</td>
<td>44.80 ± 11.30</td>
<td>66.45 ± 8.40</td>
<td>62.39 ± 10.10</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>Height</td>
<td>159.32 ± 5.00</td>
<td>172.27 ± 7.20</td>
<td>160.64 ± 6.10</td>
<td>166.44 ± 6.30</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>Weight</td>
<td>57.69 ± 4.92</td>
<td>76.02 ± 9.22</td>
<td>57.55 ± 5.32</td>
<td>61.49 ± 7.23</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>BMI</td>
<td>22.73 ± 1.57</td>
<td>25.59 ± 2.42</td>
<td>22.28 ± 1.28</td>
<td>22.14 ± 1.55</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>PHD-SU</td>
<td>9.21 ± 1.55</td>
<td>8.08 ± 1.92</td>
<td>9.53 ± 1.74</td>
<td>10.72 ± 0.92</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>FHD-SU</td>
<td>8.06 ± 1.26</td>
<td>7.78 ± 1.64</td>
<td>7.81 ± 1.38</td>
<td>10.16 ± 1.11</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>KHD-SU</td>
<td>5.03 ± 1.54</td>
<td>4.01 ± 1.27</td>
<td>3.68 ± 0.77</td>
<td>6.87 ± 0.47</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>LHD-SU</td>
<td>3.94 ± 1.54</td>
<td>2.90 ± 0.95</td>
<td>3.12 ± 0.73</td>
<td>5.61 ± 0.49</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>AHD-SU</td>
<td>0.27 ± 0.23</td>
<td>0.21 ± 0.22</td>
<td>0.39 ± 0.37</td>
<td>0.26 ± 0.31</td>
<td>0.017</td>
</tr>
<tr>
<td>PHD-SD</td>
<td>3.53 ± 0.97</td>
<td>4.57 ± 1.41</td>
<td>6.07 ± 1.17</td>
<td>5.35 ± 1.01</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>FHD-SD</td>
<td>2.25 ± 1.27</td>
<td>4.60 ± 1.64</td>
<td>5.80 ± 0.79</td>
<td>4.95 ± 1.22</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>KHD-SD</td>
<td>−0.63 ± 2.62</td>
<td>4.46 ± 2.36</td>
<td>5.37 ± 2.16</td>
<td>4.46 ± 2.36</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>LHD-SD</td>
<td>−0.40 ± 2.05</td>
<td>3.29 ± 1.55</td>
<td>3.86 ± 1.51</td>
<td>3.80 ± 0.97</td>
<td>&lt;0.001</td>
</tr>
<tr>
<td>AHD-SD</td>
<td>0.57 ± 0.46</td>
<td>0.81 ± 0.60</td>
<td>0.98 ± 0.52</td>
<td>2.59 ± 2.62</td>
<td>&lt;0.001</td>
</tr>
</tbody>
</table>
    <div class="note">
        Notes: EOA early osteoarthritis EOAQ Early Osteoarthritis Questionnaire PHD pelvic horizontal displacement FHD femur horizontal displacement KHD knee horizontal displacement LHD lower leg horizontal displacement AHD ankle horizontal displacement SU step up SD step down
    </div>
</body>
</html>