

body {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}


/* Academic link style for better readability */
.academic-link {
    color: #495057 !important;
    text-decoration: underline !important;
}

.academic-link:hover {
    color: #212529 !important;
    text-decoration: underline !important;
}

/* Infos and Secondary classes with white text */
.text-infos,
.bg-infos,
.infos {
    color: #ffffff !important;
}

.text-secondary,
.bg-secondary,
.secondary {
    color: #ffffff !important;
}

/* Infos and Secondary classes with white text */
.text-infos,
.bg-infos,
.infos {
    color: #ffffff !important;
}

.text-secondary,
.bg-secondary,
.secondary {
    color: #ffffff !important;
}

/* Ensure icons with infos/secondary classes also have white color */
.text-infos i,
.bg-infos i,
.infos i,
.text-secondary i,
.bg-secondary i,
.secondary i {
    color: #ffffff !important;
}

/* Special case for hero section links - keep them white */
.hero-section a,
.hero-section a:hover,
.hero-section a:visited,
.hero-section a:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Special case for topbar links - keep them white */
.topbar a,
.topbar a:hover,
.topbar a:visited,
.topbar a:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Special case for dropdown items - keep them readable */
.dropdown-item {
    color: #212529 !important;
    text-decoration: none !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #1e2125 !important;
    text-decoration: none !important;
}

.dropdown-item:active {
    color: #fff !important;
    text-decoration: none !important;
}

.topbar {
    background-color: #f8f9fa;
    padding: 5px;
}

/* Navigation styles */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

}

/* Dropdown styles */
.dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 0.125rem;
    padding: 0.5rem 0;
    min-width: 10rem;
    z-index: 1000;
}

.dropdown-item {
    color: #212529;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    clear: both;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #1e2125;
    background-color: #f8f9fa;
}

.dropdown-item:active {
    color: #fff;
    background-color: #0d6efd;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #dee2e6;
}

/* Ensure dropdowns are visible */
.navbar-nav .dropdown-menu {
    position: absolute;
}

.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.navbar-principale {
    background: #0e0929e9;
    color: #f0ebeb;
}



.main-content {
    border-left: 1px solid #e4e4e4;
}

.main-content-container-home {
    border-right: 1px solid #e4e4e4;
}

.publication-section {
    padding-left: 20px;
}


.hero-section {
    position: relative;
    min-height: 150px;
    background: url('../assets/images/header.png') no-repeat center center;
    background-size: cover;
    color: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-section .topbar {
    background: transparent;
    padding: 10px 0;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-section .topbar .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    z-index: 1000;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 150px;
}

.hero-section h5 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-section .badge {
    color: #ffffff;
    background-color: rgba(230, 184, 0, 0.2);
    /* Pale gold accent */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-section .lead {
    font-size: 1rem;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}


.sidebar-section {
    padding-left: 20px;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.button-home {
    display: inline-block;
    padding: 0 1em;
    background: #eee;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-top-color: #bbb;
    border-radius: 3px;
    box-shadow: inset 0 -1em 1em rgba(0, 0, 0, 0.1);
    font-size: .93rem;
    line-height: calc(2.143rem - 2px);
    font-weight: 700;
    color: #006798;
    text-decoration: none;
}

.title-article {
    color: #333;
}

.article-section {
    border-bottom: 1px solid #dedddd;
}

.footer {
    background-color: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #686565;
}

.card {
    border: 1px solid #fff;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #fff;
}

.card-body {
    background-color: #fff;
}

.content-section {
    margin-top: 30px;
}

.about-journal-section {
    border-radius: 0;
    border-bottom: 1px solid #fafafb;
}

.about-title {
    font-size: 1.285rem;
    line-height: 2.143rem;
    font-weight: 700;
}

.about-meta {
    font-size: 1rem;
    color: #444;
}

.about-issn {
    font-weight: 500;
}

.about-doi a {
    color: #d35400;
    font-weight: 500;
}

.about-button,
.register-button,
.about-button:hover,
.register-button {
    color: #fff;
    font-weight: 500;
}

.navbar-nav .nav-item .nav-link {
    /* uppercase */
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 300;
}

.about-img {
    border-radius: 4px;
    background: #fff;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.about-body {
    font-family: Lato, sans-serif;
    font-size: 14px;
}

.text-home {
    font-family: "sans-serif";
    font-size: 16px !important;
    line-height: 1.785rem;
}

 
  .hr-container {
    position: relative;
    margin: 20px 0;
    height: 1px;
    background-color: #000;
  }

  .hr-text {
    position: absolute;
    left: 30px; /* Change to 30px if needed */
    top: -10px;
    background: #fff; /* Match background to 'cut' the line */
    padding: 0 5px;
    font-weight: bold;
  }

/* Issue page specific styles to match home page */
.current_issue {
    margin-top: 2.143rem;
    margin-bottom: 2.143rem;
}

.current_issue h2 {
    margin: 0 0 1.43rem 0;
    font-family: Lato, sans-serif;
    font-size: 1.714rem;
    line-height: 2.143rem;
    font-weight: 700;
    color: #333;
}

.current_issue_title {
    margin: 1.43rem 0;
    font-weight: 700;
    font-size: 1.285rem;
    line-height: 2.143rem;
    color: #333;
}

.obj_issue_toc {
    margin-top: 2.143rem;
}

.obj_issue_toc .heading {
    margin-bottom: 2.143rem;
}

.obj_issue_toc .cover {
    display: block;
    margin-bottom: 1.43rem;
}

.obj_issue_toc .cover img {
    display: block;
    max-height: 250px;
    width: auto;
}

.obj_issue_toc .description {
    margin: 1.43rem 0;
    font-size: .93rem;
    line-height: 1.43rem;
}

.obj_issue_toc .description p {
    margin: 0;
}

.obj_issue_toc .published {
    margin: 1.43rem 0;
    font-size: .93rem;
    line-height: 1.43rem;
}

.obj_issue_toc .published .label {
    font-weight: 700;
    color: #333;
}

.obj_issue_toc .published .value {
    color: #666;
}

.obj_issue_toc .sections {
    margin-top: 2.143rem;
}

.obj_issue_toc .section h2 {
    margin: 0 0 1.43rem 0;
    font-family: Lato, sans-serif;
    font-size: 1.285rem;
    line-height: 2.143rem;
    font-weight: 700;
    color: #333;
}

.obj_issue_toc .section:not(:first-child) {
    margin-top: 4.286rem;
}

.obj_issue_toc .articles {
    margin: 0;
    padding: 0;
    list-style: none;
}

.obj_issue_toc .articles > li {
    margin-bottom: 2.143rem;
}

.obj_issue_toc .articles > li:last-child {
    margin-bottom: 0;
}

.obj_issue_toc .obj_article_summary {
    margin: 0;
}

.obj_issue_toc .obj_article_summary .title {
    margin: 0 0 0.714rem 0;
    font-family: Lato, sans-serif;
    font-size: 1rem;
    line-height: 1.43rem;
    font-weight: 700;
}

.obj_issue_toc .obj_article_summary .title a {
    color: #006798;
    text-decoration: none;
}

.obj_issue_toc .obj_article_summary .title a:hover {
    color: #008acb;
    text-decoration: underline;
}

.obj_issue_toc .doiInSummary {
    margin-bottom: 0.714rem;
    font-size: .93rem;
    line-height: 1.43rem;
}

.obj_issue_toc .doiInSummary strong {
    color: #333;
}

.obj_issue_toc .doiInSummary a {
    color: #006798;
    text-decoration: none;
}

.obj_issue_toc .doiInSummary a:hover {
    color: #008acb;
    text-decoration: underline;
}

.obj_issue_toc .meta {
    margin-bottom: 0.714rem;
    font-size: .93rem;
    line-height: 1.43rem;
}

.obj_issue_toc .meta .authors {
    color: #333;
    font-weight: 500;
}

.obj_issue_toc .meta .pages,
.obj_issue_toc .meta .published {
    color: #666;
}

.obj_issue_toc .summary {
    margin-bottom: 0.714rem;
    font-size: .93rem;
    line-height: 1.43rem;
}

.obj_issue_toc .summary p {
    margin: 0;
    color: #666;
}

.obj_issue_toc .galleys_links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.obj_issue_toc .galleys_links li {
    display: inline-block;
    margin-right: 1em;
}

.obj_issue_toc .galleys_links li:last-child {
    margin-right: 0;
}

.obj_issue_toc .obj_galley_link {
    display: inline-block;
    padding: 0 1em;
    background: #fff;
    border: 1px solid #006798;
    border-radius: 3px;
    font-size: .93rem;
    line-height: calc(2.143rem - 2px);
    color: #006798;
    text-decoration: none;
    font-weight: 700;
}

.obj_issue_toc .obj_galley_link:hover,
.obj_issue_toc .obj_galley_link:focus {
    background: #006798;
    color: #fff;
}

.obj_issue_toc .obj_galley_link.pdf:before {
    content: "\f1c1";
    margin-right: 0.25em;
}

@media (max-width: 767px) {
    .about-title {
        font-size: 1.2rem;
    }

    .about-img {
        max-width: 140px;
    }
}

/* Responsive adjustments for MDPI typography */
@media (max-width: 768px) {
    body {
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }

    .hero-section h1 {
        font-size: 2rem !important;
    }

    .hero-section p {
        font-size: 1.125rem !important;
    }

    .col-md-9 h2 {
        font-size: 1.5rem !important;
    }

    .card-header h3 {
        font-size: 1.25rem !important;
    }

    .border-bottom h4 {
        font-size: 1rem !important;
    }

    .sidebar-section h3 {
        font-size: 1.125rem !important;
    }
    
    .current_issue h2 {
        font-size: 1.5rem !important;
    }
    
    .current_issue_title {
        font-size: 1.2rem !important;
    }
}