/* ===== CONTROLLED HEADER SIZE (DESKTOP + MOBILE BALANCE) ===== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
    --brand-blue: #1d3c6a;
    --brand-green: #38761d;
    --light-bg: #f1f8f5;
    --dark-strip: #0b2240;
    --darker-strip: #051427;
}

/* Desktop */
.pkp_site_name .is_img img {
    display: block;
    width: auto;
    height: auto;
    max-width: 900px;   /* prevents over-expansion */
    max-height: 110px;  /* keeps header compact */
}

/* Tablet */
@media (max-width: 992px) {
    .pkp_site_name .is_img img {
        max-width: 100%;
        max-height: 95px;
    }
}

/* Mobile */
@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;
}

/* ===== GLOBAL SITE FOOTER ENGINE ===== */
.site-footer {
    width: 100%;
    line-height: 1.6;
    font-family: 'Lato', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. Top Strip */
.footer-top-strip {
    background-color: var(--dark-strip);
    color: #ffffff;
    padding: 12px 0;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    opacity: 0.8;
}

/* 2. Main Footer Area */
.footer-main {
    background-color: var(--light-bg);
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.text-blue { color: var(--brand-blue); }
.text-green { color: var(--brand-green); }

.mission-text {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 15px;
}

.issn-plain-text {
    font-size: 0.9rem;
    color: #555;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.footer-email {
    display: block;
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 15px;
    text-decoration: none;
}

.license-block {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.preservation-block {
    margin-top: 25px; 
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.license-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-blue);
    margin: 0 0 5px 0;
    font-weight: 700;
}

.license-text {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

.col-heading {
    color: var(--brand-green);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li { margin-bottom: 10px; }
.footer-list a { color: #333; text-decoration: none; font-size: 0.95rem; }
.footer-list a:hover { color: var(--brand-blue); text-decoration: underline; }

.preservation-item {
    font-size: 0.95rem;
    color: #333;
    margin-top: 2px;
    margin-bottom: 10px;
    list-style: none;
}

.preservation-item a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease-in-out;
}

.preservation-item a:hover {
    color: var(--brand-blue); /* Changes link color on cursor hover */
    text-decoration: underline;
}

/* ===== SYSTEM GRID BALANCE SECTIONS ===== */
.utility-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: flex-start;
}

.utility-top-group {
    width: 100%;
}

.ojs-brand-right {
    width: 100%;
    margin-top: 40px; 
}

.ojs-brand-right img {
    max-width: 150px;
    height: auto;
    display: block;
    opacity: 0.9;
}

/* ===== DISABLE BRITTLE SYSTEM-INJECTED OVERLAYS ===== */
.pkp_brand_footer {
    display: none !important;
}

/* 3. Publisher Strip Configuration */
.publisher-strip {
    background-color: var(--darker-strip);
    color: #adb5bd;
    padding: 30px 0;
    clear: both;
}

.publisher-flex-end {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pub-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.pub-right-group {
    display: flex;
    align-items: stretch; 
    gap: 25px;
    text-align: right;
}

.pub-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.pub-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.pub-slogan {
    color: #cbd5e1;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.3;
}

.pub-address {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.3;
}

.pub-copyright {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 300;
}

.pub-logo-wrapper {
    display: flex;
    align-items: center;
}

.footer-pub-logo {
    height: 100%;
    max-height: 65px; 
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .utility-col { justify-content: flex-start; align-items: flex-start; }
    .ojs-brand-right { margin-top: 20px; }
    .publisher-flex-end { flex-direction: column; align-items: flex-start; gap: 20px; }
    .pub-right-group { text-align: left; flex-direction: column-reverse; align-items: flex-start; gap: 15px; }
    .footer-pub-logo { height: 50px; }
}