/* IORO-Inspired Theme - Clean Professional Styling with Bootstrap 4 */

/* IORO Font Declarations */
@font-face {
    font-family: konnect-light;
    src: url('../fonts/konnect/Konnect-Light.ttf');
}

@font-face {
    font-family: konnect-regular;
    src: url('../fonts/konnect/Konnect-Regular.ttf');
}

@font-face {
    font-family: konnect-medium;
    src: url('../fonts/konnect/Konnect-Medium.ttf');
}

@font-face {
    font-family: konnect-bold;
    src: url('../fonts/konnect/Konnect-Bold.ttf');
}

:root {
    --primary: #009ADA;
    --primary-color: #009ADA;
    --secondary-color: #0056b3;
    --accent-color: #007bff;
    --light-bg: #f8f9fa;
    --text-dark: #323232;
    --text-light: #666;
    --border-color: #e9ecef;
    --font-primary: konnect-light, sans-serif;
    --font-heading: konnect-medium, sans-serif;
    --font-bold: konnect-bold, sans-serif;
}

/* Import Google Fonts as fallback */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Base styles */
body {
    font-family: konnect-light;
    color: #323232 !important;
    padding-top: 122px;
    background-color: #fff;
}

/* Focus outline removal */
*:focus {
    outline: none !important;
}

/* Link styling */
a {
    color: #323232;
}

a:hover {
    text-decoration: none;
    color: #727272;
}

/* Main content spacing */
.main__content {
    margin-bottom: 3rem;
}

/* Issue image wrapper */
.issueImageWrapper {
    padding: 5px;
    border: "1px solid #e3e3e3";
    box-shadow: 3px 3px 3px 3px #E0E0E0;
    text-align: center;
}

.issueImageWrapper img {
    width: 100%;
}

/* Navigation hover effects */
nav a:hover {
    text-decoration: none !important;
}

/* Container max width */
.container {
    max-width: 1450px;
}

/* Shadow utilities */
.bottom-shadow {
    box-shadow: 0 13px 13px -13px #E0E0E0;
}

.top-shadow-inset {
    box-shadow: inset 1px 13px 13px -13px #e0e0e0;
}

/* IORO Header Styles */
.header-ioro {
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



.issn-info {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.issn-label {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.user-actions {
    gap: 0.5rem;
}

.contact-btn {
    font-size: 12px;
    padding: 0.375rem 0.75rem;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 500;
}

.contact-btn:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.headerNameOfSite {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    padding-right: 1rem;
}

.register-btn {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.siteLogo {
    margin-right: 2rem;
}

/* Head-line Section (Call for Papers) */
.head-line {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    
}

.headerSiteTitle {
    font-family: var(--font-bold);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.headerSiteTitle:nth-child(2) {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.head-line-button {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.head-line-button:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Editor Info */
.editorInfo {
    text-align: center;
}

.editor-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.editor-title {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.editor-title .h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.editor-title .h6 {
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0;
}

/* Statistics Section */
.statistics {
    background: white;
    margin: 2rem 0;
}

.statistics-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}

.statistics-item:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.statistics-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.statistics-item:hover .statistics-title {
    color: white;
}

.statistics-desc {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.3;
}

.statistics-item:hover .statistics-desc {
    color: rgba(255,255,255,0.9);
}

.statistics-border {
    border-right: 1px solid #e9ecef !important;
}

.statistics-border-bottom {
    border-bottom: 1px solid #e9ecef !important;
}

.statistics-border-right {
    border-right: 1px solid #e9ecef !important;
}

/* Skip Links - Accessibility (ADA compliance) */
.cmp_skip_to_content {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -1;
}

.cmp_skip_to_content a {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -1;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cmp_skip_to_content a:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    z-index: 9999;
    left: 0;
    top: 0;
    margin: 0 0 10px 0;
    display: inline-block;
}

/* Header - IORO style */
.header-ioro {
    width: 100%;
    position: fixed;
    z-index: 999;
    background-color: white;
    top: 0;
    left: 0;
    padding: 0.5rem 0;
}

.pkp_site_name {
    font-family: var(--font-bold);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-decoration: none;
    color: var(--text-dark);
}

.pkp_site_name a {
    color: var(--text-dark);
    text-decoration: none;
}

.pkp_site_name a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

/* Navigation - IORO Bootstrap navbar style - Updated to match IJTER */
.navbar {
    padding: 0;
    background-color: #ffffff !important;
}

.navbar-nav {
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-item {
    margin-right: 1.2rem;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    border-radius: 6px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(0,154,218,0.1);
}

.navbar-nav .nav-link i {
    font-size: 12px;
}

/* Dropdown positioning */
.dropdown {
    position: relative;
}

.dropdown-menu {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    margin: 0;
    min-width: 240px;
    display: none;
    position: absolute;
    z-index: 1050;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    font-size: 14px;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: none;
    display: block;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    padding-left: 2rem;
}

.dropdown-item:hover::before {
    content: "→";
    position: absolute;
    left: 0.75rem;
    color: white;
    font-weight: bold;
}

.dropdown-item i {
    font-size: 12px;
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

/* Dropdown toggle styling */
.nav-link.dropdown-toggle {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.nav-link.dropdown-toggle:hover {
    color: var(--primary-color) !important;
}

.nav-link.dropdown-toggle::after {
    /* content: "\f107"; */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 0.75rem;
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--primary-color);
    font-size: 14px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.nav-link.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

/* Submit Paper Button - IJTER style */
.submit-paper-cta {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.submit-paper-cta:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.submit-paper-cta i {
    font-size: 11px;
}

/* Logo wrapper */
.logo-wrapper {
    margin-right: 2rem;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.05);
}

/* Search form styling */
.cmp_form .input-group {
    border-radius: 25px;
    overflow: hidden;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

.cmp_form .form-control {
    border: 1px solid var(--border-color);
    padding-left: 1rem;
}

.cmp_form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,154,218,0.25);
}

.cmp_form .input-group-text {
    background: white;
    border-left: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cmp_form .input-group-text:hover {
    background-color: var(--light-bg);
}

.cmp_form .input-group-text button {
    border: none;
    background: none;
    color: var(--text-dark);
}

.cmp_form .input-group-text button:hover {
    color: var(--primary-color);
}

/* Navigation styles from IORO */
#navigationPrimary {
    margin-left: 1.2rem;
}

#navigationPrimary li {
    margin-right: 1.2rem;
}

#navigationUser {
    margin: 0;
    padding: 0;
}

#navigationUser li {
    display: block;
    margin-right: 0.5rem;
}

.main-menu__nav-link {
    font-size: 14px;
}

/* Navigation User buttons */
#navigationUser .nmi_type_user_register {
    display: inline;
    text-transform: uppercase;
}

#navigationUser .nmi_type_user_login {
    display: inline;
    text-transform: uppercase;
    text-decoration: underline;
}

/* Task count styling */
.task_count {
    font-size: 11px;
    font-weight: bold;
}

.task_count::after {
    content: "]";
}

.task_count::before {
    content: "[ ";
}

/* Main content area */
.pkp_structure_main {
    /* padding: 2rem 0; */
}

/* Sidebar - IORO style */
.pkp_structure_sidebar {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.pkp_structure_sidebar h2 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pkp_structure_sidebar ul {
    list-style: none;
    padding: 0;
}

.pkp_structure_sidebar ul li {
    margin-bottom: 0.5rem;
}

.pkp_structure_sidebar ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.pkp_structure_sidebar ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Sidebar menu styling - IORO style */
.sidebar_menu {
    margin-bottom: 2rem;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.sidebar_menu h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar_menu li {
    margin-bottom: 0.5rem;
}

.sidebar_menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar_menu a:hover {
    background-color: rgba(0,123,255,0.1);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    text-decoration: none;
    padding-left: 1.5rem;
}

/* Call for Papers special styling */
.call-for-papers {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
}

.call-for-papers h4 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.call-for-papers a {
    color: white;
}

.call-for-papers a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.cfp-content h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.cfp-content p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Journal statistics styling */
.journal-stats {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.journal-stats p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.journal-stats strong {
    color: var(--primary-color);
}

/* Homepage Styles */

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-banner .display-4 {
    font-family: var(--font-bold);
    font-weight: 700;
    line-height: 1.2;
}

.hero-banner .lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Indexing Section */
.indexing-section .indexing-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.indexing-section .indexing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Statistics Section */
.stat-item .stat-number {
    font-family: var(--font-bold);
    font-weight: 700;
}

.stat-item .stat-label {
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Latest Articles Section */
.latest-articles {
    background: white;
}

/* Call for Papers Section */
.call-for-papers {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Scopus Statistics Section */
.scopus-stats {
    background: white;
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.stat-number {
    font-family: var(--font-bold);
    font-weight: 700;
}

.stat-label {
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.stat-subtitle {
    font-size: 0.75rem;
}

/* Current Issue Section */
.current-issue-card {
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.current-issue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.issue-cover img {
    border: 2px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-banner {
        text-align: center;
        padding: 3rem 0;
    }

    .hero-banner .d-flex {
        justify-content: center;
    }

    .hero-banner .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }

    .hero-banner .d-flex.align-items-center .me-3 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .header-ioro {
        padding: 0.5rem 0;
    }

    body {
        padding-top: 130px;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .current-issue-card .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    /* Mobile header adjustments */
    .headerRowLine {
        /* padding: 0.75rem 0; */
        min-height: auto;
    }

    .issn-info {
        font-size: 12px;
        margin-bottom: 0.5rem;
    }

    .user-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .contact-btn, .login-btn, .register-btn {
        font-size: 11px;
        padding: 0.25rem 0.5rem;
        margin: 0.125rem;
    }

    .headerNameOfSite {
        font-size: 12px;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .siteLogo {
        margin-right: 1rem;
        max-width: 120px !important;
    }

    .headerSiteTitle {
        font-size: 1.5rem;
    }

    .headerSiteTitle:nth-child(2) {
        font-size: 1.2rem;
    }

    .editor-photo img {
        width: 100px;
        height: 100px;
    }

    /* Mobile navbar adjustments */
    .navbar-nav .nav-item {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 13px;
    }

    .submit-paper-cta {
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
    }

    .cmp_form {
        margin-top: 1rem;
        width: 100%;
    }

    .cmp_form .input-group {
        max-width: none;
    }

    .logo-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media only screen and (max-width: 685px) {
    .headerNameOfSite {
        white-space: nowrap;
        overflow: hidden;
        font-size: 10px;
        text-overflow: ellipsis;
        min-width: 160px;
        margin-right: 0;
        text-align: center;
    }

    .issn-info {
        font-size: 11px;
    }

    .user-actions {
        justify-content: center;
    }
}

@media only screen and (max-width: 600px) {
    .issueImageWrapper {
        margin-bottom: 2rem;
        max-width: 200px;
    }

    .headerNameOfSite {
        white-space: nowrap;
        overflow: hidden;
        font-size: 10px;
        text-overflow: ellipsis;
        min-width: 160px;
        margin-right: 0;
    }

    .nav-item {
        font-size: 11px;
    }

    .subscribe-title {
        font-size: 24px;
    }

    .headerSiteTitle {
        font-size: 32px;
    }

    .siteLogo {
        margin-bottom: 0.5rem;
        margin-top: 1rem;
    }

    .row {
        padding-right: 15px;
        padding-left: 15px;
    }

    .navigationUserWrapper {
        min-width: 140px;
    }

    .headerRowLine {
        padding: 0 !important;
    }
}

.footer-main {
    margin-top: 3rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.footer-main ul {
    margin: 0;
    padding: 0;
    margin-top: 6px;
}

.footer-main ul li {
    font-size: 12px;
    font-weight: 300;
    margin-bottom: 1rem;
    list-style-type: none;
}

.footer-main li.header {
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-heading);
}

.footer-social-media-img {
    margin-right: 1rem;
}

.footer-publishing-house {
    font-size: 20px;
    font-weight: 100;
    margin-top: 1rem;
    padding-bottom: 1rem;
    opacity: 0.62;
}

.gray-footer {
    background-color: #f7f7f7;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    vertical-align: middle;
    font-family: var(--font-primary);
}

.gray-footer-container {
    font-size: 12px;
    line-height: 2;
    letter-spacing: -0.12px;
    color: var(--text-dark);
}

.gray-footer-container .margin-right-5 {
    margin-right: 0.5rem;
}

.gray-footer-container a {
    font-weight: 500;
    color: var(--text-dark);
}

.gray-footer-container a:hover {
    text-decoration: none;
}

/* Article cards */
.obj_article_summary {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
    transition: box-shadow 0.3s ease;
}

.obj_article_summary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.obj_article_summary h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin: 0 0 1rem 0;
}

.obj_article_summary .authors {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .pkp_structure_head {
        padding: 1rem 0;
    }

    .pkp_site_name {
        font-size: 1.8rem;
    }

    .pkp_structure_sidebar {
        margin-top: 2rem;
    }
}