/* Journal of Business and Accounting Review - External Stylesheet for OJS */
/* Compatible with OJS default theme */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333;
    --font-main: 'Georgia', serif;
    --font-headings: 'Montserrat', sans-serif;
    --font-content: 'Lora', serif;
}

/* Global Typography */
body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--primary-color);
}

.pkp_structure_main h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
}

.pkp_structure_main h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.pkp_structure_main h2::before {
    content: '';
    width: 5px;
    height: 24px;
    background-color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
}

.pkp_structure_main h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.pkp_structure_main p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.pkp_structure_main ul, .pkp_structure_main ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.pkp_structure_main li {
    margin-bottom: 0.5rem;
}

/* Header customization */
.pkp_head_wrapper {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pkp_site_name .is_text {
    font-family: var(--font-headings);
    font-weight: 700;
    color: white;
}

.pkp_navigation_primary_wrapper {
    background-color: var(--primary-color);
}

.pkp_navigation_primary > li > a {
    color: var(--light-color);
    font-weight: 500;
    transition: color 0.3s;
}

.pkp_navigation_primary > li > a:hover {
    color: var(--secondary-color);
}

.pkp_navigation_primary .dropdown-menu {
    background-color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sidebar enhancements */
.pkp_structure_sidebar {
    background-color: white;
    padding: 1rem 0;
    border-right: 1px solid #e1e1e1;
}

.pkp_block {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.pkp_block .title {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
}

.pkp_block ul {
    list-style: none;
    padding-left: 0;
}

.pkp_block li {
    margin-bottom: 0.8rem;
}

.pkp_block a {
    display: block;
    color: var(--dark-color);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    padding-left: 0.8rem;
}

.pkp_block a:hover {
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    background-color: rgba(230, 126, 34, 0.05);
}

/* Main content area enhancements */
.pkp_structure_main {
    padding: 2rem;
    background-color: white;
}

.page {
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Article/Issue styling */
.obj_article_summary {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e1e1;
}

.obj_article_summary .title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.obj_article_summary .meta {
    font-style: italic;
    color: #777;
    margin: 0.5rem 0;
}

.obj_article_summary .galleys_links {
    margin-top: 1rem;
}

.obj_article_summary .galleys_links a {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-right: 0.5rem;
}

.obj_article_summary .galleys_links a:hover {
    background-color: #d35400;
}

/* Issue TOC */
.obj_issue_toc .heading {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.obj_issue_toc .sections {
    margin-top: 2rem;
}

.obj_issue_toc .section {
    margin-bottom: 2rem;
}

.obj_issue_toc .section_title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Footer customization */
.pkp_structure_footer_wrapper {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 2rem 0;
}

.pkp_structure_footer a {
    color: var(--light-color);
}

.pkp_structure_footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Buttons and UI elements */
.pkp_button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.pkp_button:hover {
    background-color: #d35400;
}

/* Custom highlight box for important content */
.jbar-highlight {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    margin: 1.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pkp_structure_sidebar {
        border-right: none;
        border-bottom: 1px solid #e1e1e1;
    }

    .pkp_structure_main {
        padding: 1rem;
    }
    
    .page {
        padding: 1rem;
    }
}

/* Current issue highlight on homepage */
.current_issue_title {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

/* Search form styling */
.search_input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    width: 100%;
}

.search_button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* Journal information pages */
.jbar-info-section {
    margin-bottom: 2rem;
}

.jbar-info-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Sidebar container */
.pkp_structure_sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #e1e1e1;
    padding-top: 1.5rem;
}

/* All sidebar blocks */
.pkp_block {
    background-color: white;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 0;
    overflow: hidden;
}

/* Block titles */
.pkp_block .title {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background-color: var(--primary-color);
    padding: 0.8rem 1rem;
    margin: 0;
    border-bottom: 3px solid var(--secondary-color);
}

/* Block content */
.pkp_block .content {
    padding: 1rem;
}

/* Custom menu in sidebar */
.jbar_sidebar_menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jbar_sidebar_menu li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.jbar_sidebar_menu li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.jbar_sidebar_menu a {
    display: block;
    color: var(--dark-color);
    text-decoration: none;
    padding: 0.7rem 0.5rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.jbar_sidebar_menu a:hover {
    color: var(--secondary-color);
    background-color: rgba(230, 126, 34, 0.05);
    border-left-color: var(--secondary-color);
    padding-left: 0.8rem;
}

/* Indexed in list */
.jbar_sidebar_indexed {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jbar_sidebar_indexed li {
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.jbar_sidebar_indexed li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ISSN and Metrics blocks */
#customblock-ISSN .content p,
#customblock-Metrics .content p {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted #eee;
}

#customblock-ISSN .content p:last-child,
#customblock-Metrics .content p:last-child {
    border-bottom: none;
}

/* Contact block styling */
#customblock-Contact .content p {
    margin-bottom: 1rem;
}

#customblock-Contact .content strong {
    color: var(--primary-color);
}

/* Current issue highlight */
.current_issue {
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    padding: 0.8rem;
    margin-top: 1rem;
    font-weight: bold;
}

/* Make sidebar mobile-friendly */
@media (max-width: 768px) {
    .pkp_structure_sidebar {
        border-right: none;
        padding: 1rem;
    }
    
    .pkp_block {
        margin-bottom: 1rem;
    }
}

@media (min-width: 992px) {
    .pkp_site_name .is_img img {
        max-height: 175px;
    }
}

@media (max-width: 768px){
	.pkp_site_name .is_img img {
	    display: block;
	    max-height: 4.143rem;
	    max-width: 100%;
	    width: auto;
	    height: auto;
	}
}
