/********** Template CSS for ojs_old Redesign **********/
:root {
    --primary: #22afed;
    --light: #F0FBFC;
    --dark: #181d38;
}

body {
    font-family: 'Heebo', sans-serif !important;
    background-color: #ffffff !important;
    color: #52565b !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
}

/* Hide OJS core header & footer elements we are replacing */
.pkp_structure_head, .pkp_structure_footer_wrapper, .pkp_brand_footer {
    display: none !important;
}

/* Fix structure wrapper spacing */
.pkp_structure_page {
    padding: 0 !important;
    max-width: 100% !important;
}

.pkp_structure_content {
    max-width: 1200px !important;
    margin: 30px auto !important;
    padding: 0 15px !important;
}

/* On multi-journal site homepage, force full width and reset floated containers */
body.pkp_site_index .pkp_structure_content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.pkp_site_index .pkp_structure_main {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Custom Navbar */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark) !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
    transition: .3s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.dropdown-item {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.dropdown-item:hover {
    background-color: var(--light) !important;
    color: var(--primary) !important;
}

/* Top bar utility (for admin login / dashboard access) */
.admin-top-bar {
    background: var(--dark);
    color: #ffffff;
    font-size: 13px;
    padding: 5px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.admin-top-bar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
    transition: 0.3s;
}

.admin-top-bar a:hover {
    color: var(--primary);
}

/* Section Title */
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--primary) !important;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

/* Service Item (Journals Cards) */
.service-item {
    background: var(--light);
    transition: .5s;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: #ffffff !important;
}

.service-item img {
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-info {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.btn-info:hover {
    background-color: #1793cb !important;
    border-color: #1793cb !important;
}

/* Footer styling */
.footer {
    background-color: var(--dark) !important;
    color: #A3A3A3 !important;
}

.footer h4 {
    color: #ffffff !important;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #A3A3A3 !important;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    text-decoration: none;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\F285"; /* Bootstrap Icons chevron-right code */
    font-family: "bootstrap-icons";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary) !important;
    padding-left: 8px;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 35px;
    transition: .3s;
    text-decoration: none;
}

.footer .btn.btn-social:hover {
    color: var(--primary) !important;
    background: #ffffff;
    border-color: #ffffff;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a {
    color: #ffffff;
    text-decoration: none;
}

.footer .footer-menu a {
    color: #A3A3A3;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    text-decoration: none;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* OJS Table of Contents and layout adjustments */
.obj_issue_toc {
    margin-top: 30px;
}

.obj_article_summary {
    border-bottom: 1px solid #EEEEEE;
    padding: 20px 0;
}

.obj_article_summary .title a {
    color: var(--dark) !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.obj_article_summary .title a:hover {
    color: var(--primary) !important;
}

.galleys_links .galley_link {
    background-color: var(--primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.galleys_links .galley_link:hover {
    background-color: #1793cb !important;
}

/* Carousel customizations */
.carousel-item {
    transition: transform 0.6s ease-in-out, opacity 0.5s ease-in-out !important;
}

.carousel-caption {
    background: transparent !important;
    text-align: left;
    left: 8%;
    right: 8%;
}

.carousel-caption h1 {
    font-size: calc(1.5rem + 3vw) !important;
    line-height: 1.2;
}

.carousel-caption p {
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: 600px;
    text-align: left !important;
}

/* Modern Sidebar Navigation Card */
.sidebar-nav-container {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(34, 175, 237, 0.15);
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-nav-container:hover {
    box-shadow: 0 8px 25px rgba(34, 175, 237, 0.12) !important;
    transform: translateY(-2px);
}

.sidebar-nav-header {
    background: linear-gradient(135deg, #22afed 0%, #1793cb 100%);
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav-header h5 {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    font-size: 15px;
    color: #ffffff !important;
}

.sidebar-nav-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.sidebar-nav-item {
    border-bottom: 1px solid rgba(34, 175, 237, 0.08);
    transition: all 0.2s ease-in-out;
}

.sidebar-nav-item:last-child {
    border-bottom: none;
}

.sidebar-nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: var(--dark) !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.sidebar-nav-item .nav-icon {
    font-size: 16px;
    width: 24px;
    margin-right: 12px;
    color: var(--primary);
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover State */
.sidebar-nav-item:hover {
    background-color: rgba(34, 175, 237, 0.04);
}

.sidebar-nav-item:hover a {
    color: #1793cb !important;
    padding-left: 22px; /* Smooth slide right */
}

.sidebar-nav-item:hover .nav-icon {
    color: #1793cb;
    transform: scale(1.2);
}

/* Active State */
.sidebar-nav-item.active {
    background-color: rgba(200, 203, 7, 0.06);
    border-left: 4px solid #c8cb07; /* Sleek active indicator bar matching journal highlight */
}

.sidebar-nav-item.active a {
    color: #aeb100 !important; /* Slightly darker gold/green for contrast and readability */
    font-weight: 700;
    padding-left: 14px;
}

.sidebar-nav-item.active .nav-icon {
    color: #c8cb07;
}

/* ISSN Blink Animation */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blink-image {
    animation: blink 2s infinite ease-in-out;
}

/* Metadata Tables formatting */
.metadata-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(34, 175, 237, 0.2) !important;
}

.metadata-table td {
    padding: 8px 12px !important;
    border-color: rgba(34, 175, 237, 0.1) !important;
    font-size: 14px;
    color: #333333 !important;
}

.metadata-table tr:nth-child(even) {
    background-color: rgba(34, 175, 237, 0.04);
}

/* Old style tables inside loaded content */
.dynamic-tab-content table {
    width: 100% !important;
    margin-bottom: 20px;
    background-color: rgba(36, 170, 232, 0.08);
    border-collapse: separate !important;
    border-spacing: 0px !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.dynamic-tab-content td, .dynamic-tab-content th {
    padding: 10px !important;
    border: 1px solid #ffffff !important;
    color: #000000 !important;
}

.dynamic-tab-content label {
    font-weight: 600 !important;
    color: #333333 !important;
}

.dynamic-tab-content h3, .dynamic-tab-content h4, .dynamic-tab-content h5 {
    color: var(--primary) !important;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Formatting for paper list table */
#isstab {
    width: 100% !important;
    border-collapse: collapse !important;
}

#isstab td {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 12px !important;
}

#isstab tr.gray_bg {
    background-color: var(--primary) !important;
}

#isstab tr.gray_bg td {
    color: white !important;
    font-weight: bold;
}

.box-info {
    box-shadow: 0 0 15px rgba(55, 122, 189, 0.15);
    padding: 20px;
    border-radius: 8px;
    background-color: #ffffff;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.box-info-paper {
    box-shadow: 0 0 15px rgba(55, 122, 189, 0.15);
    padding: 15px;
    border-radius: 8px;
    background-color: #ffffff;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pkp_structure_content:before,
.pkp_structure_content:after {
    display: none !important;
}

.pkp_structure_main {
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.pkp_structure_main:before,
.pkp_structure_main:after {
    display: none !important;
}

/* Submit Journal Button */
.btn-submit-journal {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    border: 2px solid var(--primary);
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(34, 175, 237, 0.15);
    align-self: center;
}

.btn-submit-journal:hover {
    background-color: var(--dark) !important;
    border-color: var(--dark) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(24, 29, 56, 0.2);
}

.btn-submit-journal:active {
    transform: translateY(0);
}

@media (min-width: 992px) {
    .btn-submit-journal {
        margin: 20px 0 20px 25px;
    }
}

