/* ============================================================
   OJS-UK Theme — Footer (v2 "Journal directory" board)
   White footer with navy serif headings, columns divided by
   hairlines, dark navy bottom bar, rounded back-to-top button.
   ============================================================ */

.site-footer {
    background: transparent;
    border-top: 1px solid var(--uk-border);
    margin-top: 48px;
}

.site-footer .footer-top {
    background: transparent !important;
    padding: 46px 0 30px;
}

.site-footer a {
    color: var(--uk-navy);
    font-family: var(--uk-sans);
    font-size: 13.5px;
}

.site-footer a:hover {
    color: var(--uk-red);
    text-decoration: underline;
}

/* Column hairline dividers (v2) */
.site-footer .footer-top .row > div + div {
    border-left: 1px solid #dfe2e6;
}

/* Wordmark block */
.footer-logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    text-decoration: none;
}

.footer-logo-img {
    max-height: 46px;
    width: auto;
    margin-right: 10px;
}

.footer-logo-main {
    font-family: var(--uk-serif);
    font-size: 23px;
    color: var(--uk-navy);
    line-height: 1.15;
}

.footer-logo-sub {
    font-family: var(--uk-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--uk-navy);
    margin-top: 3px;
}

.footer-description {
    font-family: var(--uk-sans);
    font-size: 13px;
    line-height: 1.7;
    color: var(--uk-text) !important;
    text-align: justify;
}

/* Column headings — navy serif, no rules (v2) */
.footer-heading {
    font-family: var(--uk-serif);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--uk-ink);
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

.site-footer .mb-3 {
    margin-bottom: 16px;
}

/* Contact items */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--uk-sans);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--uk-text);
    margin-bottom: 10px;
}

.footer-contact-item i {
    margin-top: 3px;
    color: var(--uk-navy);
    width: 14px;
    text-align: center;
}

/* Link list */
.site-footer .nav-pills li a,
.footer-links-list li a {
    display: block;
    color: var(--uk-navy) !important;
    padding: 0 0 11px 0 !important;
    background: none;
}

.site-footer .nav-pills li a:hover,
.footer-links-list li a:hover {
    color: var(--uk-red) !important;
    text-decoration: underline;
}

.site-footer .nav-pills {
    display: block;
}

/* Social */
.footer-social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--uk-navy) !important;
    margin-bottom: 6px;
}

.footer-social-link:hover {
    color: var(--uk-red) !important;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    color: var(--uk-navy);
    margin-right: 10px;
}

.site-footer .footer-social .mb-2 {
    margin-bottom: 10px;
}

.site-footer .mb-0 {
    margin-bottom: 0;
}

/* Bottom bar — dark navy strip (v2) */
.site-footer .footer-bottom {
    background: #00254a !important;
    border-top: none;
    padding: 15px 0;
    margin-top: 12px;
}

.site-footer .footer-bottom p {
    font-family: var(--uk-sans);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
}

.site-footer .footer-bottom a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92) !important;
}

.site-footer .footer-bottom a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.site-footer .footer-bottom .text-white-50 {
    color: rgba(255, 255, 255, 0.45);
    margin: 0 8px;
}

/* Slim journal footer — just the navy strip */
.journal-footer {
    border-top: none;
    margin-top: 48px;
}

.journal-footer .journal-footer-bottom {
    margin-top: 0;
    padding: 20px 0;
}

.journal-footer-links a {
    color: rgba(255, 255, 255, 0.92);
}

.journal-footer-links .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
}

/* Rounded navy back-to-top (v2) — overrides header.css square version */
.back-to-top {
    border-radius: 6px;
    background: var(--uk-navy);
}

@media (max-width: 991px) {
    .site-footer .footer-top .row > div + div {
        border-left: none;
    }
}

@media (max-width: 767px) {
    /* Left-align the footer bottom row instead of the desktop split */
    .footer-description {
        text-align: left;
    }

    .site-footer .footer-bottom .col-md-6,
    .journal-footer .col-md-6 {
        text-align: left !important;
    }

    .site-footer .footer-bottom .col-md-6:last-child,
    .journal-footer .col-md-6:last-child {
        margin-top: 8px;
    }

    .footer-top .col-lg-3,
    .footer-top .col-md-6 {
        margin-bottom: 26px;
    }
}
