/* One OJS footer, styled independently of legacy theme and editor colors. */
.journal-design #footer.journal-footer {
    position: relative;
    isolation: isolate;
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 25px 0 0;
    overflow: hidden;
    border: 0;
    background: linear-gradient(105deg, #002957, #001e47) !important;
    color: #fff !important;
    font-size: 13px;
    line-height: 1.45;
}
.journal-design #footer.journal-footer > .container {
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: 1280px;
    padding-right: 38px;
    padding-left: 38px;
}
.journal-design #footer.journal-footer::before,
.journal-design #footer.journal-footer::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    width: 540px;
    height: 180px;
    right: -125px;
    bottom: -115px;
    border-radius: 50%;
    transform: rotate(-20deg);
}
.journal-design #footer.journal-footer::before {
    border-top: 20px solid #adfc12;
    background: #007991;
}
.journal-design #footer.journal-footer::after {
    right: -145px;
    bottom: -139px;
    border: 0;
    background: #003b60;
    opacity: 1;
}
.journal-design #footer.journal-footer a,
.journal-design #footer.journal-footer p,
.journal-design #footer.journal-footer span {
    color: #fff !important;
}
.journal-design #footer.journal-footer a:hover {
    color: #adfc12 !important;
    text-decoration: underline;
}
.journal-design #footer .journal-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 22px;
}
.journal-design #footer .journal-footer-grid > * {
    min-width: 0;
}
.journal-design #footer .journal-footer-grid > * + * {
    padding-left: 32px;
    border-left: 1px solid #ffffff55;
}
.journal-design #footer h2,
.journal-design #footer h3,
.journal-design #footer h4 {
    margin: 0 0 14px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    text-transform: none;
}
.journal-design #footer .journal-footer-logo {
    max-width: 290px;
    margin: 0 0 13px;
    padding: 6px 9px;
}
.journal-design #footer img {
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 70px;
    margin: 0 0 12px;
    object-fit: contain;
}
.journal-design #footer p {
    margin: 0 0 10px;
    font-size: inherit;
    line-height: inherit;
    overflow-wrap: anywhere;
}
.journal-design #footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.journal-design #footer li {
    margin: 0 !important;
    padding: 7px 0;
    border-bottom: 1px solid #ffffff25;
    font-size: 13px !important;
    line-height: 1.4;
}
.journal-design #footer li a {
    display: inline-block;
    padding: 0;
    border: 0;
    font-size: 13px !important;
    line-height: 1.4;
}
.journal-design #footer .journal-footer-menu .dropdown-menu {
    padding-left: 14px;
    background: transparent;
}
.journal-design #footer .journal-footer-bottom {
    padding: 13px 0;
    border-top: 1px solid #ffffff33;
    font-size: 11px;
}
/* Normalize the rich-text footer maintained in OJS without changing its copy. */
.journal-design #footer .journal-footer-custom {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    overflow-wrap: anywhere;
}
.journal-design #footer .journal-footer-custom .footer,
.journal-design #footer .journal-footer-custom .contact-widget,
.journal-design #footer .journal-footer-custom .footer-widget,
.journal-design #footer .journal-footer-custom .footer-widgets {
    height: auto !important;
    min-height: 0;
    margin: 0;
    border: 0;
    background: transparent !important;
}
.journal-design #footer .journal-footer-custom .footer {
    padding: 0 !important;
    overflow: visible !important;
}
.journal-design #footer .journal-footer-custom .footer-widget {
    min-width: 0 !important;
    width: auto !important;
    padding: 0 !important;
    font-size: inherit;
    line-height: inherit;
}
.journal-design #footer .journal-footer-custom .row:has(> [class*='col-']),
.journal-design #footer .journal-footer-custom .footer > div:has(> [class*='col-']),
.journal-design #footer .journal-footer-custom .footer-widgets {
    display: grid !important;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 22px !important;
}
.journal-design #footer .journal-footer-custom .row::before,
.journal-design #footer .journal-footer-custom .row::after {
    display: none;
    content: none;
}
.journal-design #footer .journal-footer-custom [class*='col-'] {
    float: none;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
}
.journal-design #footer .journal-footer-custom .footer-widgets > * + *,
.journal-design #footer .journal-footer-custom .footer > div:has(> [class*='col-']) > * + * {
    border-left: 1px solid #ffffff55;
    padding-left: 32px !important;
}
.journal-design #footer .journal-footer-custom .small,
.journal-design #footer .journal-footer-custom .copyright-section {
    max-width: none !important;
    margin: 0 !important;
    padding: 14px 0 !important;
    border-top: 1px solid #ffffff33;
    font-size: 11px !important;
}
@media (max-width: 900px) {
    .journal-design #footer.journal-footer > .container {
        padding-right: 24px;
        padding-left: 24px;
    }
    .journal-design #footer .journal-footer-grid,
    .journal-design #footer .journal-footer-custom .row:has(> [class*='col-']),
    .journal-design #footer .journal-footer-custom .footer > div:has(> [class*='col-']),
    .journal-design #footer .journal-footer-custom .footer-widgets {
        gap: 22px !important;
    }
    .journal-design #footer .journal-footer-grid > * + *,
    .journal-design #footer .journal-footer-custom .footer-widgets > * + *,
    .journal-design #footer .journal-footer-custom .footer > div:has(> [class*='col-']) > * + * {
        padding-left: 20px !important;
    }
}
@media (max-width: 700px) {
    .journal-design #footer.journal-footer > .container {
        padding-right: 18px;
        padding-left: 18px;
    }
    .journal-design #footer .journal-footer-grid,
    .journal-design #footer .journal-footer-custom .row:has(> [class*='col-']),
    .journal-design #footer .journal-footer-custom .footer > div:has(> [class*='col-']),
    .journal-design #footer .journal-footer-custom .footer-widgets {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px !important;
    }
    .journal-design #footer .journal-footer-grid > * + *,
    .journal-design #footer .journal-footer-custom .footer-widgets > * + *,
    .journal-design #footer .journal-footer-custom .footer > div:has(> [class*='col-']) > * + * {
        border-left: 0;
        border-top: 1px solid #ffffff33;
        padding: 18px 0 0 !important;
    }
    .journal-design #footer h2,
    .journal-design #footer h3,
    .journal-design #footer h4 { font-size: 17px; }
    .journal-design #footer.journal-footer::before,
    .journal-design #footer.journal-footer::after { right: -250px; }
    .journal-design #footer.journal-footer::before { bottom: -155px; }
    .journal-design #footer.journal-footer::after { bottom: -175px; }
}

/* Server-normalized groups also support rich-text footers without grid classes. */
.journal-design #footer .journal-footer-custom .journal-footer-columns {
    display: grid !important;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 36px;
    margin: 0;
    padding: 0 0 22px;
}
.journal-design #footer .journal-footer-custom .journal-footer-column {
    float: none;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
    overflow-wrap: anywhere;
}
.journal-design #footer .journal-footer-custom .journal-footer-column + .journal-footer-column {
    border-left: 1px solid #ffffff55;
    padding-left: 30px !important;
}
.journal-design #footer .journal-footer-custom .journal-footer-column img {
    max-width: min(100%, 290px) !important;
    max-height: 70px;
}
@media (max-width: 900px) {
    .journal-design #footer .journal-footer-custom .journal-footer-columns { gap: 20px; }
    .journal-design #footer .journal-footer-custom .journal-footer-column + .journal-footer-column { padding-left: 20px !important; }
}
@media (max-width: 700px) {
    .journal-design #footer .journal-footer-custom .journal-footer-columns { grid-template-columns: minmax(0, 1fr); }
    .journal-design #footer .journal-footer-custom .journal-footer-column + .journal-footer-column {
        border-left: 0;
        border-top: 1px solid #ffffff33;
        padding: 18px 0 0 !important;
    }
}
