html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    background-color: #fdfdfd;
    color: #234;
    margin: 0;
    font-size: 13px;
}

h1 {
    margin-bottom: 32px;
    font-size: 2.6em;
}

h2 {
    margin-top: 48px;
}

h1,
h2 {
    color: #234;
}

h3,
h4,
h5 {
    color: #345;
}

h1,
h2,
h3,
h4,
h5,
a,
p,
span,
body,
div {
    font-weight: normal;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
}

.header {
    background: linear-gradient(to bottom, #fdfdfd 10%, #f4f4f8 90%);
    width: 100%;
    padding-top: 16px;
    padding-bottom: 32px;
}

.header-profile-picture,
.header-text {
    display: inline-block;
}

.header-name {
    margin-bottom: 16px;
}

.header-name h1 {
    margin: 0;
}

.header-subtitle {
    margin-bottom: 12px;
}

.header-profile-picture {
    width: 100px;
    height: 100px;
    margin-right: 12px;
    border-radius: 50%;
    background-image: url(pic/self.png);
    background-position: center;
    background-size: cover;
}

/* Selected Online Projects Styles */
.selected-online-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 32px;
}

.project-card {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.project-card-content {
    padding: 16px;
    text-align: justify;
    /* text-align: center; */
}

.project-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: bold;
}

.project-card h3 a {
    color: #234;
}

.project-card h3 a:hover {
    color: #f09228;
}

.project-card p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.content {
    max-width: 748px;
    padding-left: 16px;
    padding-right: 16px;
    margin: auto;
    margin-top: 48px;
}

.hr {
    width: 100%;
    height: 1px;
    margin: 48px 0;
    background-color: #d6dbdf;
}

a {
    color: #2471a3;
    text-decoration: none;
}

a:focus,
a:hover {
    color: #f09228;
}

p {
    line-height: 1.5em;
}

.nobreak {
    white-space: nowrap;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.bulletpoints {
    line-height: 1.5em;
}

.row {
    box-sizing: border-box;
}

.row-media {
    display: block;
    float: left;
    width: 200px;
    height: 120px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.row-text {
    display: block;
    float: left;
    margin-left: 12px;
    line-height: 1.5em;
    max-width: 526px;
}

.row-text span {
    line-height: inherit;
}

.clearfix {
    content: "";
    clear: both;
    display: table;
}

.publication {
    margin-bottom: 32px;
}

.press {
    width: 100px;
    height: 80px;
    border: 1px solid #def;
    margin-right: 12px;
    background-size: cover;
}

.img-contain {
    background-size: contain !important;
}

.footer {
    background-color: #345;
    width: 100%
}

.footer-content {
    color: #fff;
    font-size: 10px;
    padding: 6px 0;
    max-width: 968px;
    margin: auto;
}

.footer-content a {
    color: #fff;
    text-decoration: underline;
}

.footer-content a:hover {
    color: #f09228 !important;
}

.stars {
    font-size: 10px;
    display: inline-block;
    margin-left: 6px;
    color: #666;
}

@media only screen and (max-width: 1150px) {

    .header-profile-picture,
    .header-text {
        display: block;
        margin: auto;
        text-align: center;
    }

    .header-profile-picture {
        margin-bottom: 12px;
        width: 140px;
        height: 140px;
    }

    body {
        font-size: 18px;
    }

    a.btn {
        font-size: 14px;
        padding: 2px 6px;
    }
}

@media only screen and (max-width: 1000px) {
    .publication {
        margin-bottom: 46px;
    }

    .publication .row-media {
        width: 260px;
        height: 130px;
        margin: auto;
        margin-bottom: 12px;
        display: block;
    }

    .publication .row-text {
        display: block;
        width: 100%;
        margin-left: 0;
    }

    .press {
        display: block;
    }
}

.experience {
    margin-bottom: 24px;
}

.experience-logo {
    display: block;
    float: left;
    width: 60px;
    height: 60px;
    margin-right: 16px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f4f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.experience-text {
    display: block;
    float: left;
    line-height: 1.6em;
    max-width: 600px;
}

.experience-company {
    font-size: 15px;
    color: #234;
    margin-bottom: 4px;
}

.experience-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.experience-title {
    font-size: 13px;
    color: #234;
}

@media only screen and (max-width: 1000px) {
    .experience {
        margin-bottom: 32px;
    }

    .experience-logo {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    .experience-text {
        width: calc(100% - 70px);
    }
}