@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.subtitle {
    margin-left: 45px;  /* Restored left margin */
    text-align: left;   /* Align text to left */
    margin-top: 40px;
    margin-bottom: 40px;
}

.subtitle h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.subtitle h4 {
    color: #787878;
    font-size: 36px;
    margin-top: 0;
}


.desktop-table {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.desktop-table img {
    width: 130px;
    height: 130px;
    margin-top: 8px;
}

.desktop-table .photo-frame {
    background-color: #c03;
    width: 148px;
    height: 148px;
    border-radius: 74px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.desktop-table td {
    padding: 30px;
    text-align: center;
}

.mobile-table {
    display: none;
}

/* Mobile styles */
@media screen and (max-width: 896px) {
    body {
        overflow-x: hidden;
    }

    .desktop-table {
        display: none;
    }

    .mobile-table {
        display: table;
        width: 100%;
        margin: 0 auto;
        padding: 20px 60px;
        max-width: 500px;
    }

    .mobile-table img {
        width: 65px;
        height: 65px;
        margin-top: 5px;
    }

    .mobile-table .photo-frame {
        background-color: #c03;
        width: 75px;
        height: 75px;
        border-radius: 38px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-table td {
        padding: 15px;
        text-align: center;
        vertical-align: top;
        width: 33.33%; /* Make all cells equal width */
    }

    .subtitle {
        margin-left: 45px;  /* Keep left margin on mobile */
        margin-right: 45px;
        margin-bottom: 30px;
    }

    .subtitle h2, .subtitle h4 {
        font-size: 28px;
    }

    .name {
        font-size: 14px;
        margin: 5px 0;
    }

    i {
        font-size: 12px;
    }

    /* Add similar padding to your reference CSS */
    .mobile-table {
        padding: 20px 60px;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Common styles */
table, td {
    border-collapse: collapse;
}

.name {
    font-size: 18px;
}

a {
    text-decoration: none;
    color: #C03;
}