body {
    font-family: 'candara light';
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    color: #444;
    overflow-x: hidden;
}
header {
    position: relative;
    display: flex;
    background-color: #CDE6F9;
    justify-content: space-between;
    align-items: center;
    padding:  0 160px 0 10px;
}
header .logo img {
    width: 117px;
    height: auto;
    margin-right: 5px;
    margin-top: 5px;
}
a.mainname {
    text-decoration: none;
    color: #244cb5;
    margin-right: auto;
}
#navigation, .nav-toggle {
    display: none;
}
.menu {
    display: flex;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.right-side {
    display: flex;
    align-items: center;
}
.menu li {
    display: flex;
    align-items: center;
}
.menu li a {
    display: flex;
    align-items: center;
    color: #244cb5;
    text-decoration: none;
}
.mainname, .othername {
    font-size: 2.5em;
    font-style: italic;
    font-weight: bold;
}
.othername {
    font-size: 1.5em;
    position: relative;
}
.menu .other-item + .other-item {
    border-left: 1px solid #244cb5;
    padding-left: 10px;
    margin-left: 10px;
}
.mainname:hover, .othername:hover {
    color: #0e0c16;
} 
.active {
    color: black;
}
main {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}
.bio {
    display: flex;
    width: 100%;
}
.bio-photo img {
    min-width: 200px;
    max-height: 600px;
    margin-right: 0;
    border-radius: 25px;
}
.bio-content .intro {
    margin: 30px;
    font-size: 2.1em;
    color: #393348;
    max-width: 1600px;
}  
.text, .contact {
    font-size: 1.5em;
    margin: 30px;
    text-align: justify;
    max-width: 1600px;
}
.download-resume img {
    width: 50px;
    height: auto;
    margin-bottom: 2px;
}
.cv {
    margin-left: 12px;
}
.download-resume a {
    text-decoration: none;
    color: #444;
    font-size: 1.3em;
    display: flex;
    flex-direction: column;
    margin: 30px;
}
.abstract-photo {
    max-width: 35%; 
    margin-top: 40px;
}
.abstract-photo img {
    display: block;
    width: 70%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}
.container {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 20px;
}
.left_chapters, #left_chapters {
    background-color: #edf4fa;
    padding: 20px;
}
.left_chapters ul, #left_chapters ul {
    width: 230px;
    margin: 0;
    max-width: 100%;
    font-size: 2em;
    list-style: none;
}
.left_chapters ul li {
    margin: 15px 0 0 0;
} 
.left_chapters ul li a {
	text-decoration: none;
    color: #244CB5;
}
.left_chapters li a:hover { 
    color: black; 
}
#left_chapters li.selected {
    font-weight: bold;
    color: #0d0606;
}
.post-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 20px;
}
.post-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin-top: 20px;
    max-width: 100%;
    align-items: start;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    position: relative;
}
.post-detail img {
    max-width: 350px;
    width: 100%;
    height: auto;
}
.post-detail h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
}
.post-content-50 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.post-content-50 p, .post-content-50 h2 {
    margin: 0;
    font-size: 1em;
    margin-top: 5px;
}
.read-more-button {
    padding: 5px 10px;
    background-color: #97b1f4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    position: absolute;
    right: 20px;
    bottom: 7px;
}
.read-more-button:hover {
    background-color: #3e538c;
}
.list-pages ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.list-pages ul li {
    margin: 0;
}
.list-pages ul li a, .page-num-selected {
    display: block;
    padding: 10px 15px;
    border: 1px solid #b6b6b6;
    border-radius: 4px;
    background-color: white;
    color: black; 
    text-decoration: none;
}
.page-num-selected {
    background-color: #244CB5; 
    color: #ffffff; 
    transform: translateY(-10px);
} 
.selected {
    font-weight: bold;
    color: #0d0606; 
}
.article-container {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}
.article-full {
    padding: 10px;
    margin: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-width: 800px; 
}
.article-title {
    font-size: 2em;
    margin-bottom: 10px;
    text-align: center;
    color: black;
}
.article-content {
    font-family: Abel;
    font-size: 1.3em;
    font-weight: 200;
    color: #000000;
    line-height: 1.2;
    text-align: justify;
}
.main-image {
    text-align: center;
    margin-bottom: 10px;
}
.img-article-left {
    width: 100%;
    height: auto;
    max-width: 600px;
}
.article-content img {
    width: 100%; 
    height: auto; 
    display: block;
    margin: 0 auto; 
}
.article-content blockquote {
    border-left: 1px solid #151515;
    margin: 10px 0 10px 2px;
    padding: 0 30px;
}
.article-content figcaption, .article-content video figcaption {
    font-size: 0.8em;
    text-align: center;
}
figure p {
    margin-bottom: auto;
}
.article-content video, .media {
    display: block;
    margin: 0 auto;
    width: 100%;
} 
.article-content h2 {
    text-align: center;
    margin: 5px 5px;
}
.home-container {
    display: grid;
    grid-template-columns: auto auto;
    padding: 0 100px;
    justify-content: space-evenly;
    margin-bottom: 40px;
}
.post-box {
    background-color: #E6F4F5;
    border: 1px solid #E6F4F5;
    border-radius: 5px;
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.post-image img {
    width: 100%;
    height: auto;
}
.post-title h3 {
    margin: 10px;
    font-size: 1.2em;
    color: rgb(36, 76, 181);
}
.post-box a {
    text-decoration: none;
}
.post-box:hover {
    transform: translateY(-10px);
    background-color: #CDE6F9;
}
footer {
    background-color: #CDE6F9;
    padding: 10px 0;
    position: relative;
    width: 100%;
}
.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5px 5px 5px;
}
.footer-section {
    margin-bottom: 40px;
}
.social-icon {
    width: 30px;
    height: 30px;
    margin: 0 10px;
}
.footer-bottom {
    text-align: center;
    padding: 10px 0;
    font-size: 1.1em;
    width: 100%;
    position: absolute;
    bottom: 0;
}
@media (min-width: 360px) and (max-width: 574px) {
    header {
        padding:  0 10px 0 10px;
    }
    header .logo img {
        width: 67px;
        height: auto;
    }
    .nav-toggle, #navigation {
        display: block;
        cursor: pointer;
        background: none;
    }
    .menu-container {
        display: flex;
        position: relative;
        z-index: 50;
        justify-content: flex-end;
        align-items: center;
    }
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background-color: #244cb5;
    } 
    .right-side {
        display: none;
        flex-direction: column;
        background-color: #CDE6F9;
        position: absolute;
        right: 0;
        top: 75px;
        width: 100%;
        z-index: 1000;
    }
    .right-side.active {
        display: flex;
    }
    .right-side li {
        margin: 10px 0;
    }
    .right-side a {
        display: block;
        padding: 10px;
        color: #244CB5;
        text-align: center;
        text-decoration: none;
    }
    .mainname, .othername {
        font-size: 1em;
        text-align: left;
    }
    .menu .other-item + .other-item {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }
    .home-container {
        grid-template-columns: auto;
        padding: 0 40px;
    }
    .left_chapters, #left_chapters {
        display: none;
    }
    .container {
        grid-template-columns: auto;
    }
    .post-container {
        padding: 0 20px;
        gap: 0;
    }
    .post-detail {
        grid-template-rows: auto auto;
        grid-template-columns: auto;
    }
    .post-detail img {
        max-width: 100%;
    }
    .post-content-50 h3 {
        font-size: 1em;
        text-align: center;
    }
    .post-content-50 p {
        text-align: justify;
    }
    .read-more-button {
        display: none;
    }
    .post-detail:hover {
        background-color: #cad8f7;
    }
    main {
        padding: 20px 5px;
    }
    .bio-content .intro {
        font-size: 1em;
        margin: 5px;
    }  
    .text, .contact {
        font-size: 0.6em;
        margin: 10px 5px;
    }
    .bio-photo img {
        min-width: 200px;
        max-height: 400px;
    }
    .download-resume img {
        width: 40px;
    }
    .cv {
        margin-left: 8px;
    }
    .download-resume a {
        margin: 15px; 
    }
    .article-container {
        display: block;
    }
    .article-title {
        font-size: 1.5em;
    }
    .article-content {
        font-size: 1em;
    }
    .article-content h2 {
        font-size: 1.1em;
    }
    .article-full {
        padding: 5px;
        margin: 5px;
        box-shadow: none;
        border-radius: 8px;
        max-width: 100%; 
    }
    .abstract-photo img {
        display: none;
    }
} 
@media (min-width: 575px) and (max-width: 767px) {
    header {
        padding:  0 59px 0 10px;
    }
    header .logo img {
        width: 87px;
        height: auto;
    }
    .home-container {
        padding: 0 60px;
    }
    .mainname {
        font-size: 1.3em;
    }
    .othername {
        font-size: 1em;
    }
    .left_chapters, #left_chapters {
        padding: 5px;
    } 
    .left_chapters ul, #left_chapters ul {
        width: 120px;
    }
    .left_chapters ul li {
        font-size: 0.5em;
    }
    .container {
        gap: 10px;
    }
    .post-detail img {
        width: 200px;
        height: auto;
    }
    .post-detail h3 {
        font-size: 0.8em;
    }
    .post-content-50 p, .post-content-50 h2 {
        font-size: 0.6em;
    }
    .read-more-button {
        font-size: 0.6em;
        padding: 2.5px 5px;
    }
    .home-container {
        grid-template-columns: auto;
    }
    .bio-photo img {
        min-width: 200px;
        max-height: 500px;
    }
    .text, .contact {
        margin: 20px 10px 10px 10px;
        font-size: 1em;
    }
    .bio-content .intro {
        font-size: 1.2em;
        margin: 10px;
    }
    .download-resume a {
        margin: 15px; 
    }
    .abstract-photo img {
        display: none;
    }
}
    
@media (min-width: 768px) and (max-width: 991px) {
    header {
        padding:  0 53px 0 10px;
    }
    .home-container {
        padding: 0 30px;
    }
    .mainname {
        font-size: 1.8em;
    }
    .othername {
        font-size: 1.4em;
    }
    .post-box {
        max-width: 320px;
    }
    .left_chapters, #left_chapters {
        padding: 10px;
    } 
    .left_chapters ul, #left_chapters ul {
        width: 140px;
        font-size: 1.7em;
    }
    .container {
        gap: 10px;
    }
    .post-detail {
        display: block;
    }
    .post-detail img {
        float: left;
        height: auto;
        float: left;
        max-width: 250px;
        margin-right: 10px;
    }
    .post-detail h3 {
        font-size: 0.9em;
        margin: 0;
    }
    .post-content-50 {
        display: block;
        margin-top: 10px;
    }
    .post-content-50 p, .post-content-50 h2 {
        font-size: 0.8em;
    }
    .read-more-button {
        font-size: 0.8em;
        padding: 2.5px 5px;
    }
    .text, .contact {
        margin: 20px 10px 10px 10px;
        font-size: 1.4em;
    }
    .bio-content .intro {
        font-size: 1.6em;
        margin: 10px;
    }
    .abstract-photo img {
        display: none;
    }
}
@media (min-width: 992px) and (max-width: 1200px) {
    header {
        padding:  0 85px 0 10px;
    }
    .home-container {
        padding: 0 60px;
    }
    .post-box {
        max-width: 400px;
    }
} 