* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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: #bf6041;
    color: #fff;
}



.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.jpg') 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;
  }

@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;
    }
}