/* =========================================================
   GENERAL TYPOGRAPHY
   ========================================================= */

.pkp_page_content p,
.page p,
.obj_article_summary p,
.article-details p,
.author_guidelines p,
.obj_issue_toc p,
#main-content p {
    text-align: justify;
    text-justify: inter-word;
}

.abstract p {
    text-align: justify;
    text-justify: inter-word;
    font-style: italic;
}

#articlesBySameAuthorList li,
#articlesBySameAuthorList li a,
#articlesBySimilarityList li,
#articlesBySimilarityList li a {
    text-align: justify;
}

details {
    text-align: justify;
    text-justify: inter-word;
}

.pkp_navigation_primary_wrapper > ul > li > a {
    font-weight: 700;
    text-transform: uppercase;
}


/* =========================================================
   EDITORIAL PAGE
   ========================================================= */

.editorial-wrapper {
    max-width: 1440px;
    margin: 50px auto;
    padding: 20px 25px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: #2d3748;
}


/* =========================================================
   HEADER
   ========================================================= */

.editorial-header {
    text-align: center;
    margin-bottom: 50px;
}

.editorial-header h1 {
    font-size: 40px;
    color: #16324f;
    margin: 0 0 12px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.editorial-header p {
    color: #6b7280;
    max-width: 820px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {
    font-size: 27px;
    color: #0f4c81;
    margin: 50px 0 28px;
    border-left: 5px solid #0f4c81;
    padding-left: 15px;
    font-weight: 700;
    line-height: 1.3;
}


/* =========================================================
   EDITORIAL GRID
   ========================================================= */

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 30px;
}


/* =========================================================
   EDITOR CARD
   ========================================================= */

.editor-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;

    border: 1px solid #e8edf3;

    box-shadow:
        0 6px 20px rgba(15, 76, 129, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.editor-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 16px 38px rgba(15, 76, 129, 0.12);

    border-color: #d7e4ef;
}


/* =========================================================
   IMAGE AREA
   ========================================================= */

/*
 * The important change:
 *
 * - Larger image area
 * - No cropping
 * - Image keeps original proportions
 * - Subtle background
 * - Better presentation for portrait photos
 */

.editor-image {
    position: relative;

    min-height: 390px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eef5fa 100%
        );

    overflow: hidden;
}


/*
 * Decorative background glow.
 */

.editor-image::before {
    content: "";
    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background: rgba(15, 76, 129, 0.06);

    top: -80px;
    right: -70px;
}


/*
 * Actual photograph.
 *
 * contain = NEVER crop the picture.
 */

.editor-image img {
    position: relative;
    z-index: 1;

    display: block;

    width: auto;
    max-width: 100%;

    height: 360px;
    max-height: 360px;

    object-fit: contain;

    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/*
 * Slight enlargement when hovering over card.
 * Still does NOT crop because the image itself remains
 * inside the image container.
 */

.editor-card:hover .editor-image img {
    transform: scale(1.025);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   EDITOR CONTENT
   ========================================================= */

.editor-content {
    padding: 27px 28px 30px;
}


/* =========================================================
   ROLE BADGE
   ========================================================= */

.role-badge {
    display: inline-flex;
    align-items: center;

    background: #eaf4ff;
    color: #0f4c81;

    font-size: 12px;
    font-weight: 700;

    padding: 7px 14px;

    border-radius: 30px;

    margin-bottom: 14px;

    letter-spacing: 0.3px;

    border: 1px solid #d8eafa;
}


/* =========================================================
   NAME
   ========================================================= */

.editor-name {
    font-size: 24px;
    color: #1a202c;

    margin: 0;

    font-weight: 700;

    line-height: 1.35;

    letter-spacing: -0.2px;
}


/* =========================================================
   TITLE / POSITION
   ========================================================= */

.editor-title {
    margin: 10px 0;

    color: #4a5568;

    line-height: 1.7;

    font-size: 15px;
}


/* =========================================================
   INFORMATION
   ========================================================= */

.editor-info {
    margin-top: 18px;

    font-size: 14px;

    line-height: 1.9;

    color: #4b5563;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.editor-buttons {
    margin-top: 21px;

    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}

.editor-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    padding: 9px 15px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.editor-buttons a:hover {
    opacity: 1;

    transform: translateY(-2px);

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.08);
}


/* ORCID */

.btn-orcid {
    background: #e8f8d0;
    color: #365314;
    border: 1px solid #d6efad;
}


/* CV */

.btn-cv {
    background: #e4efff;
    color: #1d4ed8;
    border: 1px solid #d1e3ff;
}


/* Google Scholar */

.btn-scholar {
    background: #eee9ff;
    color: #6d28d9;
    border: 1px solid #e2d9ff;
}


/* =========================================================
   CONTACT INFORMATION
   ========================================================= */

.contact-box {
    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid #e5e7eb;

    font-size: 14px;

    line-height: 2;

    color: #4b5563;
}

.contact-box strong {
    color: #111827;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

    .editorial-wrapper {
        padding: 20px;
    }

    .editorial-grid {
        grid-template-columns:
            repeat(auto-fit, minmax(300px, 1fr));

        gap: 24px;
    }

    .editor-image {
        min-height: 360px;
    }

    .editor-image img {
        height: 330px;
        max-height: 330px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .editorial-wrapper {
        margin: 30px auto;
        padding: 15px;
    }

    .editorial-header {
        margin-bottom: 35px;
    }

    .editorial-header h1 {
        font-size: 30px;
    }

    .editorial-header p {
        font-size: 15px;
        line-height: 1.7;
    }

    .section-title {
        font-size: 23px;
        margin: 40px 0 22px;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .editor-card {
        border-radius: 17px;
    }

    .editor-image {
        min-height: 330px;
        padding: 15px;
    }

    .editor-image img {
        height: 300px;
        max-height: 300px;
        border-radius: 12px;
    }

    .editor-content {
        padding: 23px;
    }

    .editor-name {
        font-size: 21px;
    }

    .editor-buttons a {
        padding: 9px 13px;
        font-size: 12px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .editor-image {
        min-height: 300px;
    }

    .editor-image img {
        height: 275px;
        max-height: 275px;
    }

    .editor-content {
        padding: 20px;
    }

    .editor-name {
        font-size: 20px;
    }

    .editor-title {
        font-size: 14px;
    }

    .editor-info {
        font-size: 13px;
    }

    .editor-buttons {
        gap: 7px;
    }
}