/* ============================================================
   ADVANCES IN BIOSCIENCE — PREMIUM ACCESSIBLE FOOTER STYLESHEET
   Version: 3.0
   Optimized for:
   - WCAG Accessibility
   - Responsive OJS Layout
   - Maintainability
   - Performance
   - Modern Typography
   ============================================================ */


/* ============================================================
   CSS VARIABLES
   ============================================================ */

:root {

    --brand-blue: #1d3c6a;
    --brand-green: #38761d;

    --light-bg: #f1f8f5;

    --dark-strip: #0f2140;
    --darker-strip: #091629;

    --text-primary: #333333;
    --text-muted: #555555;

    --text-light: #ddeeff;

    --accent-gold: #e8c87a;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-dash: rgba(0, 0, 0, 0.10);

    --green-border: rgba(56, 118, 29, 0.20);

    --footer-muted-light: rgba(255, 255, 255, 0.68);

}


/* ============================================================
   HEADER LOGO
   ============================================================ */

.pkp_site_name .is_img img {

    display: block;
    width: auto;
    height: auto;

    max-width: 900px;
    max-height: 110px;

}

@media (max-width: 992px) {

    .pkp_site_name .is_img img {

        max-width: 100%;
        max-height: 95px;

    }

}

@media (max-width: 576px) {

    .pkp_site_name {

        text-align: center;

    }

    .pkp_site_name .is_img img {

        max-width: 100%;
        max-height: 75px;

        margin: 0 auto;

    }

}

.pkp_structure_head {

    padding-top: 8px;
    padding-bottom: 8px;

}


/* ============================================================
   HIDE DEFAULT OJS FOOTER
   ============================================================ */

.pkp_brand_footer {

    display: none !important;

}


/* ============================================================
   GLOBAL FOOTER BASE
   ============================================================ */

.site-footer {

    width: 100%;
    display: block;

    line-height: 1.6;

    font-family: 'Lato', sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}

.site-footer .footer-container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

    box-sizing: border-box;

}


/* ============================================================
   KEYBOARD ACCESSIBILITY
   ============================================================ */

.site-footer a:focus-visible {

    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;

    border-radius: 3px;

}


/* ============================================================
   TOP STRIP
   ============================================================ */

.site-footer .footer-top-strip {

    background-color: var(--dark-strip);

    color: var(--text-light);

    width: 100%;

    padding: 12px 0;

    font-size: 0.88rem;

    letter-spacing: 0.5px;

}

.site-footer .flex-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

}

.site-footer .tagline-journal {

    color: var(--text-light);

    font-size: 0.88rem;

    letter-spacing: 0.06em;

}

.site-footer .social-links {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

}

.site-footer .social-links a {

    color: var(--text-light);

    text-decoration: none;

    font-size: 0.88rem;

    transition: color 0.2s ease;

}

.site-footer .social-links a:hover {

    color: var(--accent-gold);

    text-decoration: underline;

}


/* ============================================================
   MAIN FOOTER AREA
   ============================================================ */

.site-footer .footer-main {

    background-color: var(--light-bg);

    width: 100%;

    padding: 36px 0 28px;

    border-top: 1px solid #e0e0e0;

}

.site-footer .footer-grid {

    display: grid;

    grid-template-columns: minmax(320px, 2fr) 1fr 1fr;

    gap: 40px;

    align-items: start;

}


/* ============================================================
   JOURNAL TITLE
   ============================================================ */

.site-footer .footer-title {

    font-family: 'Playfair Display', serif;

    font-size: 1.9rem;

    font-weight: 700;

    line-height: 1.2;

    margin: 0 0 14px;

}

.site-footer .text-blue {

    color: var(--brand-blue);

}

.site-footer .text-green {

    color: var(--brand-green);

}


/* ============================================================
   MISSION TEXT
   ============================================================ */

.site-footer .mission-text {

    max-width: 65ch;

    font-size: 0.92rem;

    color: var(--text-primary);

    line-height: 1.65;

    margin-bottom: 14px;

}


/* ============================================================
   ISSN
   ============================================================ */

.site-footer .issn-plain-text {

    font-size: 0.88rem;

    font-weight: 700;

    color: var(--text-muted);

    margin: 0 0 12px;

}

.site-footer .issn-plain-text strong {

    color: var(--text-primary);

}


/* ============================================================
   EMAIL
   ============================================================ */

.site-footer .footer-email {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--brand-blue);

    font-weight: 700;

    font-size: 0.92rem;

    text-decoration: none;

    margin-bottom: 16px;

    transition: color 0.2s ease;

}

.site-footer .footer-email:hover {

    color: var(--brand-green);

    text-decoration: underline;

}


/* ============================================================
   LICENSE + PRESERVATION BLOCKS
   ============================================================ */

.site-footer .license-block,
.site-footer .preservation-block {

    margin-top: 16px;

    padding-top: 14px;

    border-top: 1px dashed var(--border-dash);

}

.site-footer .license-badge-row {

    display: flex;

    align-items: flex-start;

    gap: 10px;

}

.site-footer .cc-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 44px;

    height: 44px;

    border-radius: 6px;

    flex-shrink: 0;

    background: rgba(56, 118, 29, 0.10);

    border: 1.5px solid rgba(56, 118, 29, 0.30);

    color: var(--brand-green);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.06em;

}

.site-footer .license-heading {

    margin: 0 0 5px;

    color: var(--brand-green);

    font-size: 0.82rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.06em;

}

.site-footer .license-text {

    margin: 0;

    color: var(--text-muted);

    font-size: 0.82rem;

    line-height: 1.55;

}

.site-footer .license-text a {

    color: var(--brand-blue);

    text-decoration: underline;

    text-underline-offset: 2px;

}

.site-footer .license-text a:hover {

    color: var(--brand-green);

}


/* ============================================================
   COLUMN HEADINGS
   ============================================================ */

.site-footer .col-heading {

    color: var(--brand-green);

    margin-bottom: 18px;

    padding-bottom: 8px;

    border-bottom: 1px solid var(--green-border);

    font-size: 0.82rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;

}


/* ============================================================
   FOOTER LISTS
   ============================================================ */

.site-footer .footer-list {

    list-style: none;

    padding: 0;

    margin: 0;

}

.site-footer .footer-list li,
.site-footer .preservation-item {

    margin-bottom: 9px;

}

.site-footer .footer-list a,
.site-footer .preservation-item a {

    color: var(--text-primary);

    text-decoration: none;

    font-size: 0.92rem;

    transition: color 0.2s ease;

}

.site-footer .footer-list a:hover,
.site-footer .preservation-item a:hover {

    color: var(--brand-blue);

    text-decoration: underline;

}

/* New Code to add > sign */
.site-footer .footer-list a::before {
    content: "> ";
    margin-right: 8px;
    font-weight: bold;
    color: var(--brand-green);
}

/* ============================================================
   UTILITY COLUMN
   ============================================================ */

.site-footer .utility-col {

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    align-items: flex-start;

    height: 100%;

}

.site-footer .utility-top-group {

    width: 100%;

}


/* ============================================================
   OJS BRAND
   ============================================================ */

.site-footer .ojs-brand-right {

    width: 100%;

    margin-top: 32px;

}

.site-footer .ojs-brand-right img {

    width: 100%;

    max-width: 150px;

    height: auto;

    display: block;

    opacity: 0.88;

    transition: opacity 0.2s ease;

}

.site-footer .ojs-brand-right img:hover {

    opacity: 1;

}


/* ============================================================
   PUBLISHER STRIP
   ============================================================ */

.site-footer .footer-publisher-strip {

    background-color: var(--darker-strip);

    color: var(--text-light);

    width: 100%;

    padding: 20px 0;

    border-top: 1px solid var(--border-subtle);

    clear: both;

}

.site-footer .footer-container-wrapper {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 30px;

    max-width: 1200px;

    margin: 0 auto;

    padding: 20px;

    box-sizing: border-box;

}


/* ============================================================
   PUBLISHER LABEL
   ============================================================ */

.site-footer .footer-pub-label {

    color: var(--footer-muted-light);

    font-size: 10px;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.12em;

    white-space: nowrap;

}


/* ============================================================
   PUBLISHER CONTENT
   ============================================================ */

.site-footer .footer-pub-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 3px;

    max-width: 700px;

}

.site-footer .footer-pub-name {

    margin: 0;

    color: #ffffff;

    font-size: 1.05rem;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.01em;

}

.site-footer .footer-pub-name sup {

    font-size: 0.6em;

    vertical-align: super;

}

.site-footer .footer-pub-tagline {

    margin: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.82rem;

    font-style: italic;

    line-height: 1.4;

}

.site-footer .footer-pub-address {

    margin: 3px 0 0;

    color: var(--footer-muted-light);

    font-size: 0.75rem;

    line-height: 1.5;

}

.site-footer .footer-pub-copyright {

    margin: 2px 0 0;

    color: var(--footer-muted-light);

    font-size: 0.75rem;

    line-height: 1.4;

}

.site-footer .footer-pub-copyright a {

    color: rgba(255, 255, 255, 0.80);

    text-decoration: underline;

    text-underline-offset: 2px;

    transition: color 0.2s ease;

}

.site-footer .footer-pub-copyright a:hover {

    color: var(--accent-gold);

}


/* ============================================================
   PUBLISHER LOGO
   ============================================================ */

.site-footer .pub-logo-wrapper {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 5px;

    max-width: 110px;

    flex-shrink: 0;

}

.site-footer .footer-pub-logo {

    display: block;

    width: auto;

    height: auto;

    max-height: 45px;

    object-fit: contain;

    opacity: 0.88;

    transition: opacity 0.2s ease;

}

.site-footer .footer-pub-logo:hover {

    opacity: 1;

}

.site-footer .pub-logo-label {

    display: none;

}


/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 900px) {

    .site-footer .footer-grid {

        grid-template-columns: 1fr 1fr;

        gap: 28px;

    }

    .site-footer .brand-col {

        grid-column: 1 / -1;

    }

    .site-footer .footer-container-wrapper {

        flex-direction: column;

        gap: 14px;

        text-align: center;

    }

    .site-footer .footer-pub-label {

        order: 3;

    }

    .site-footer .footer-pub-content {

        order: 2;

    }

    .site-footer .pub-logo-wrapper {

        order: 1;

    }

}


/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .site-footer .footer-grid {

        grid-template-columns: 1fr;

        gap: 28px;

    }

    .site-footer .utility-col {

        justify-content: flex-start;

        align-items: flex-start;

    }

    .site-footer .ojs-brand-right {

        margin-top: 18px;

    }

    .site-footer .flex-row {

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

    }

}


/* ============================================================
   RESPONSIVE — SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .site-footer .footer-main {

        padding: 24px 0 20px;

    }

    .site-footer .footer-title {

        font-size: 1.55rem;

    }

    .site-footer .footer-publisher-strip {

        padding: 18px 0;

    }

    .site-footer .footer-pub-name {

        font-size: 0.95rem;

    }

    .site-footer .footer-pub-tagline {

        font-size: 0.78rem;

    }

    .site-footer .footer-pub-address {

        font-size: 0.70rem;

    }

    .site-footer .pub-logo-wrapper {

        max-width: 80px;

    }

    .site-footer .footer-pub-logo {

        max-height: 40px;

    }

}


/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {

        transition: none !important;

        scroll-behavior: auto !important;

    }

}