/*
 * JAKPP Journal Style Sheet
 * Editorial Board cards
 * Compatible with OJS themes that provide a custom stylesheet field.
 *
 * IMPORTANT:
 * Add this CSS to the journal/theme stylesheet, not to the page content.
 * The Editorial Board HTML should use the .jakpp-board classes.
 */

/* ===== JAKPP EDITORIAL BOARD ===== */
.jakpp-board {
    --jb-blue: #174a7e;
    --jb-blue-dark: #12385f;
    --jb-blue-light: #edf3f9;
    --jb-blue-border: #d6e2ef;
    --jb-border: #e1e5eb;
    --jb-text: #182033;
    --jb-muted: #70798a;

    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    color: var(--jb-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.jakpp-board,
.jakpp-board * {
    box-sizing: border-box;
}

/* Header banner */
.jakpp-board .jb-header {
    padding: 15px 20px;
    margin: 0 0 20px;
    border: 1px solid var(--jb-blue-border);
    border-left: 6px solid var(--jb-blue);
    border-radius: 14px;
    background: linear-gradient(110deg, var(--jb-blue-light) 0%, #ffffff 100%);
}

.jakpp-board .jb-title {
    margin: 0 0 4px;
    color: var(--jb-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
}

.jakpp-board .jb-subtitle {
    margin: 0;
    color: #465368;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    font-style: italic;
}

/* Editorial categories */
.jakpp-board .jb-section {
    margin: 0 0 22px;
}

.jakpp-board .jb-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: var(--jb-blue);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;
}

.jakpp-board .jb-section-title::before {
    content: "";
    display: inline-block;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--jb-blue);
    border: 3px solid #dce8f5;
}

/* Two-column responsive grid */
.jakpp-board .jb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

/* Individual editor card */
.jakpp-board .jb-card {
    position: relative;
    min-width: 0;
    padding: 12px 15px 12px 20px;
    margin: 0;
    background: #ffffff;
    border: 1px solid var(--jb-border);
    border-radius: 14px;
    box-shadow: 0 4px 13px rgba(25, 55, 90, 0.045);
    overflow-wrap: anywhere;
}

.jakpp-board .jb-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: var(--jb-blue);
}

/* Editor name */
.jakpp-board .jb-name {
    margin: 0 0 5px;
    color: var(--jb-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.jakpp-board .jb-name a {
    color: var(--jb-text);
    text-decoration: none;
    border-bottom: 0;
}

.jakpp-board .jb-name a:hover,
.jakpp-board .jb-name a:focus {
    color: var(--jb-blue);
    text-decoration: underline;
}

/* Institutional affiliation */
.jakpp-board .jb-affiliation {
    margin: 0;
    color: var(--jb-muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

/* Profile links */
.jakpp-board .jb-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 0;
}

.jakpp-board .jb-profile {
    display: inline-flex;
    flex: 0 0 29px;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.jakpp-board .jb-profile:hover,
.jakpp-board .jb-profile:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.jakpp-board .jb-scopus {
    background: #075768;
    border: 2px solid #e7e7e7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 6px;
}

.jakpp-board .jb-orcid {
    background: #a6ce39;
    font-size: 17px;
    font-weight: 400;
}

.jakpp-board .jb-google {
    background: #4285f4;
}

.jakpp-board .jb-researchgate {
    background: #087e8b;
}

/* Divider between sections */
.jakpp-board .jb-divider {
    display: block;
    width: 100%;
    height: 0;
    margin: 24px 0 16px;
    border: 0;
    border-top: 1px solid var(--jb-border);
}

/* Avoid theme defaults adding unwanted spacing */
.jakpp-board h1,
.jakpp-board h2,
.jakpp-board h3,
.jakpp-board p {
    max-width: 100%;
}

/* Tablet and mobile */
@media (max-width: 650px) {
    .jakpp-board .jb-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .jakpp-board .jb-header {
        padding: 12px 15px;
        border-radius: 12px;
    }

    .jakpp-board .jb-title {
        font-size: 24px;
    }

    .jakpp-board .jb-subtitle {
        font-size: 14px;
    }

    .jakpp-board .jb-card {
        padding: 12px 13px 12px 18px;
    }

    .jakpp-board .jb-name {
        font-size: 16px;
    }

    .jakpp-board .jb-affiliation {
        font-size: 13px;
    }
}
