/* =========================================================
   BPI - FINAL CSS
   Biopsychosocial Practice & Implementation
   ========================================================= */

/* ================= HEADER ================= */

.pkp_structure_head {
    background: #163B72 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Header container */
.pkp_site_name {
    display: flex !important;
    align-items: center;
    padding: 10px 0;
}

/* Logo */
.pkp_site_name img {
    max-height: 70px !important;
    width: auto !important;
}

/* Alignment */
.pkp_site_name a {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

/* Desktop title */
.pkp_site_name::after {
    content: "Biopsychosocial Practice & Implementation";
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff;
}

/* ================= MENU ================= */

.pkp_navigation_primary_row {
    border-top: none !important;
}

.pkp_navigation_primary_row a {
    color: #555555 !important;
    font-weight: 600;
}

.pkp_navigation_primary_row a:hover,
.pkp_navigation_primary_row .current a {
    color: #E8A63B !important;
}

/* Search */
.pkp_search a {
    color: #163B72 !important;
    font-weight: 600;
}

/* ================= HOMEPAGE BANNER ================= */

.homepage_image {
    text-align: center;
    margin: 15px auto 25px auto;
}

.homepage_image img {
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* ================= TYPOGRAPHY ================= */

.pkp_structure_main {
    padding-top: 15px;
}

.page p {
    line-height: 1.7;
}

.page h1,
.page h2,
.page h3 {
    color: #163B72;
}

.page h1,
.page h2 {
    font-weight: 700;
}

.page h3 {
    font-weight: 600;
}

/* ================= ARTICLE PAGE ================= */

.pkp_page_article .main_entry {
    max-width: 760px;
}

.pkp_page_article .page_title {
    font-size: 30px !important;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 18px;
}

.pkp_page_article .authors {
    font-size: 15px;
    color: #222;
    margin-bottom: 6px;
    font-weight: 500;
}

.pkp_page_article .authors .affiliation {
    font-size: 13px;
    color: #777;
    margin-bottom: 4px;
}

.pkp_page_article .authors a,
.pkp_page_article .doi a,
.pkp_page_article .panel a {
    color: #163B72 !important;
}

.pkp_page_article .doi {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

.pkp_page_article .keywords {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

.pkp_page_article h2 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 8px;
    color: #000;
    border-bottom: 2px solid #E8A63B;
    display: inline-block;
    padding-bottom: 2px;
}

.pkp_page_article .item.abstract {
    font-size: 15px;
    line-height: 1.7;
    color: #222;
}

.pkp_page_article .panel {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 15px;
}

.pkp_page_article .panel .title {
    font-size: 12px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.obj_galley_link {
    background: #163B72 !important;
    color: #ffffff !important;
    border-radius: 4px;
    font-weight: 600;
    padding: 8px 14px;
}

.obj_galley_link:hover {
    background: #0F2E5C !important;
}

.pkp_page_article .entry_details {
    margin-top: 10px;
}

.pkp_page_article .item.doi,
.pkp_page_article .item.keywords {
    margin-bottom: 8px;
}

.pkp_page_article .label {
    font-weight: 600;
    color: #777;
}

/* ================= FOOTER ================= */

.pkp_brand_footer {
    opacity: 0.4;
}

/* ================= MOBILE ================= */

@media (max-width:768px) {

    /* Hide desktop title */
    .pkp_site_name::after {
        display: none !important;
        content: none !important;
    }

    /* Keep logo and title on same line */
    .pkp_site_name {
        display: flex !important;
        align-items: center !important;
        padding: 4px 0 !important;
    }

    .pkp_site_name a {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding-left: 8px !important;
    }

    /* Logo */
    .pkp_site_name img {
        max-height: 40px !important;
        width: auto !important;
        flex-shrink: 0;
    }

    /* Mobile title */
    .pkp_site_name a::after {
        content: "Biopsychosocial Practice & Implementation";
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        display: block !important;
        max-width: 180px;
        white-space: normal;
    }

    /* Banner */
    .homepage_image img {
        width: 100% !important;
    }

    /* Article title */
    .pkp_page_article .page_title {
        font-size: 24px !important;
    }
}