header {
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: gray !important;
    margin-bottom: 1em;
}

h1 {
    text-indent: -9999px;
    background-image: url(/the_img.png);
    height: 0px;
    width: 0px;
    white-space: nowrap;
    margin: 0;
    display: none;
    margin-right: 1em;
}

.header-text {
    font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size: 1.4em;
    font-weight: 400;
    color: #fff;
}

.header-social {
    text-align: right;
}

.header-social a {
    font-size: 1.6em;
    color: #fff;
    text-align: right;
}

.main-text {
    background-color: #6b9dc729;
    padding: 2em;
    margin-bottom: 1em;
    max-width: 41em;
    font-size: 1.5em;
}

h2 a {
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size: 0.7em;
    font-weight: 700;
    color: #397096;
    line-height: 1.42857143;
    text-transform: none;
}

.journal h2, .journal ul {
    display: inline-block;
}

.journal ul {
    margin-left: 1em;
}

.journal .list-inline a {
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #397096;
}

.list-inline li {
    display: inline-block;
    padding-right: 0.4em;
    padding-left: 0.2em;
}

footer {
    background-color: #f3f3f3;
    font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size: 15px;
}

footer h2 {
    font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size: 1.46em;
    font-weight: 700;
    margin-top: 20px;
}
footer.row {
    padding: 2em;
}

footer img {
    margin-bottom: 2em;
}

#dora-signatory img {
    margin-top: 0.5em;
}

h2#journals {
    font-size: 1.4em;
    margin: 1em 0;
}

div.journal > h3 {
    font-size: 1.2em;
    margin: 1.5em 0 0.5em;
    color: #397096;
}

div.journal p.idented {
    padding-left: 1em;
}

div.journal > hr {
    margin: 2em 0 4em;
}

a {
    color: #397096;
}

.header-social a:hover {
    color: #23527c;
}


.ganj_mosaic {
    display: grid;
    grid-template-columns: auto auto auto auto;
    justify-content: center;
    align-items: center;
    align-content: center;
    justify-items: center;
    grid-row-gap: 0.2em;
}

.ganj_mosaic > a,
.ganj_mosaic > img {
    background-color: white !important;
    max-width: 85%;
    heigth: 85
    max-height: 6em;
    text-align: center;
    object-fit: contain;
}

.ganj_mosaic > a > img, .ganj_description > a > img, .ganj_description2 > a > img {
    min-width: 13%;
    max-height: 7em;
    max-width: 85%;
    padding: 0.7em;
}

.nav-menu {
    background-color: #23527c;
    margin-bottom: 1em;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 0.75em 1.5em;
    color: #fff;
    text-decoration: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1em;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background-color: #1a3d5c;
    color: #fff;
}

.nav-menu a.active {
    background-color: #397096;
    color: #fff;
}

.nav-menu li.language-switcher {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0 1.5em;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.nav-menu li.language-switcher a {
    padding: 0.75em 0.5em;
}

.nav-menu li.language-switcher span {
    color: #6b9dc7;
    font-weight: 700;
    text-transform: uppercase;
}

.ebook {
    padding: 1.5em;
    margin-bottom: 2em;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(35, 82, 124, 0.08);
}

.ebook > .row > .col-sm-3 {
    margin-bottom: 1em;
}

.ebook img {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(35, 82, 124, 0.15);
}

.ebook h3 {
    margin: 0 0 0.75em;
    color: #23527c;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.3;
}

.ebook .info {
    background-color: #f4f7fb;
    border-left: 4px solid #397096;
    border-radius: 4px;
    padding: 1em 1.25em;
    margin-bottom: 1em;
}

.ebook .info p {
    margin: 0 0 0.5em;
}

.ebook .info p:last-child {
    margin-bottom: 0;
}

.ebook .info strong {
    color: #397096;
}

.ebook .info ul {
    margin: 0.5em 0 0;
    padding-left: 1.25em;
    list-style: disc;
}

.ebook .info ul li {
    margin-bottom: 0.25em;
}

.ebook .toc {
    margin-top: 1.5em;
    padding: 1.25em 1.5em;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2C7CBF;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(35, 82, 124, 0.08);
}

.ebook .toc h4 {
    margin-top: 0;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.05em;
    font-weight: 700;
    color: #23527c;
}

.ebook .toc .toc-chapters {
    margin: 0;
    padding-left: 0;
    font-size: 0.92em;
    list-style: none;
    counter-reset: chapter;
}

.ebook .toc .toc-chapters > li {
    margin-bottom: 1em;
    /* padding-bottom: 1em;
    border-bottom: 1px dashed #e2e8f0; */
}

.ebook .toc .toc-chapters > li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ebook .toc .toc-chapters > li > a {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    font-weight: 600;
    color: #23527c;
    text-decoration: none;
}

.ebook .toc .toc-chapters > li > a::before {
    content: counter(chapter, decimal-leading-zero);
    counter-increment: chapter;
    font-size: 0.8em;
    font-weight: 700;
    color: #2C7CBF;
}

.ebook .toc .toc-chapters > li > a:hover {
    color: #2C7CBF;
}

.ebook .toc .toc-studies {
    margin: 0.6em 0 0;
    padding-left: 1.5em;
    list-style: none;
}

.ebook .toc .toc-studies li {
    position: relative;
    padding-left: 1.1em;
    margin-bottom: 0.35em;
    font-size: 0.9em;
}

.ebook .toc .toc-studies li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #6b9dc7;
}

.ebook .toc .toc-studies a {
    color: #397096;
    text-decoration: none;
}

.ebook .toc .toc-studies a:hover {
    color: #2C7CBF;
    text-decoration: underline;
}

.ebook .chapter {
    margin-top: 1.5em;
    border-top: 1px solid #e2e8f0;
    padding-top: 1em;
}

.ebook .chapter .chapter_body {
    padding: 0 1em;
}

.ebook .chapter .chapter_body p:nth-child(n+2) {
    display: none;
}

.ebook .chapter .chapter_body:not(.expanded) p {
    margin-bottom: 0;
}

.ebook .chapter .chapter_body.expanded p {
    display: block;
}

.ebook .chapter .btn-read-mode {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin: 0 0 1em 1em;
    padding: 0.25em 0.75em;
    background-color: #f1f3f5;
    border: 1px solid #d7dde3;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.78em;
    line-height: 1.4;
    color: #495057;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ebook .chapter .btn-read-mode:hover,
.ebook .chapter .btn-read-mode:focus {
    background-color: #e9ecef;
    border-color: #c6cdd4;
    color: #212529;
}

.ebook .chapter .btn-read-mode .fa {
    font-size: 0.9em;
}
.ebook .chapter > span {
    display: inline-block;
    background-color: #23527c;
    color: #fff;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35em 1em;
    border-radius: 5px;
    margin-bottom: 1em;
}

.ebook .chapter .row > .col-sm-4 {
    display: flex;
    margin-bottom: 1em;
}

.ebook .chapter .research {
    flex: 1;
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.9em 1em;
    font-size: 0.9em;
    line-height: 1.4;
    min-height: 6em;
    color: #33475b;
    display: flex;
    flex-direction: column;
}

.ebook .chapter .research .research_number {
    align-self: flex-start;
    font-weight: 700;
    color: grey;
    padding-bottom: 0.3em;
}

.ebook .chapter .research .research_number .fa {
    margin-right: 0.4em;
    vertical-align: text-top;
}

.ebook .chapter .research .research_title {
    flex: 1 1 auto;
    font-weight: 500;
    font-size: 1em;
}

.ebook :is(.research, .info) .btn-group {
    align-self: flex-start;
    display: flex;
    gap: 0.5em;
    margin-top: 0.9em;
}

.ebook :is(.research, .info) .btn-research {
    display: inline-block;
    padding: 0.5em 1.1em;
    font-size: 0.9em;
    font-weight: 600;
    color: #fff;
    background-color: #2C7CBF;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ebook :is(.research, .info) .btn-research:hover {
    background-color: #23527c;
    color: #fff;
}

.ebook :is(.research, .info) .btn-view {
    background-color: transparent;
    color: #2C7CBF;
    border: 1px solid #2C7CBF;
}

.ebook :is(.research, .info) .btn-view:hover {
    background-color: #2C7CBF;
    color: #fff;
}

.ebook :is(.research, .info) .doi {
    margin-top: 0.6em;
    padding-top: 0.6em;
    border-top: 1px dashed #e2e8f0;
}

.ebook :is(.research, .info) .doi a {
    color: #2C7CBF;
    font-size: 0.82em;
    font-weight: 500;
    text-decoration: none;
    word-break: break-all;
}

.ebook :is(.research, .info) .doi a:hover {
    color: #23527c;
    text-decoration: underline;
}

main h2#ebooks-title,
main h2#submission-title {
    margin-top: 1em;
}

a.disabled,
.btn-research.disabled,
.doi a.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
    text-decoration: none;
}

.btn-research.disabled {
    background-color: #9aa5b1;
}

.btn-view.disabled {
    border-color: #9aa5b1;
    color: #9aa5b1;
}

.lattes img {
    box-shadow: none;
    border: 0;
    width: 1.4em;
    margin-bottom: 0.2em;
}