/* ==========================================================================
   AL-KILMAH OJS COMPLETE STYLESHEET
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* --------------------------------------------------------------------------
   1. GLOBAL & BASE STYLES
   -------------------------------------------------------------------------- */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    height: 100%;
}

/* Link Styling */
a:link {
    color: #4b7d58;
}

a:visited {
    color: #4b7d58;
}

a:hover {
    color: #8e8326;
}

a:active {
    color: #8e8326;
}

/* --------------------------------------------------------------------------
   2. PKP / OJS CORE STRUCTURE OVERRIDES
   -------------------------------------------------------------------------- */
.pkp_structure_page {
    margin-top: 0px;
}

.pkp_site_name {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.pkp_site_name > a {
    padding-top: 0;
    padding-bottom: 0;
}

.pkp_site_name .is_img img {
    max-height: 200px !important;
}

.pkp_site_name_wrapper {
    padding-left: 0;
    padding-right: 0;
}

.pkp_navigation_primary.pkp_nav_list {
    max-width: 100%;
}

.pkp_navigation_primary_row {
    background: #8e8326;
}

#navigationPrimary a {
    color: rgb(255 255 255);
}

#navigationPrimary a:hover {
    color: rgb(28 61 44);
}

.cmp_manuscript_button,
.block_make_submission a,
.obj_galley_link {
    background: #BFB035;
}

.pkp_block {
    padding: 30px;
    padding-bottom: 15px;
}

.pkp_block .title {
    display: block;
}

.pkp_page_index .homepage_about {
    padding-top: 2.143rem;
    padding-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   3. BANNERS & PROMOTIONAL ELEMENTS
   -------------------------------------------------------------------------- */
.banner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #d2b48c 0%, #f4e1d2 50%, #f4e1d2 51%, #f4e1d2 100%);
    color: black;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.banner h1 {
    font-size: 24px;
    margin-bottom: 10px;
    animation: fadeIn 2s;
}

.banner p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    animation: slideIn 2s;
}

.submit-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff9900;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.submit-btn:hover {
    background-color: #ffaa33;
    transform: scale(1.05);
}

.banner2 {
    width: 100%;
    height: 100px;
    background: linear-gradient(45deg, #d2b48c, #f4e1d2);
    overflow: hidden;
    position: relative;
}

.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%238B4513" fill-opacity="0.1" d="M0,32L48,37.3C96,43,192,53,288,80C384,107,480,149,576,154.7C672,160,768,128,864,112C960,96,1056,96,1152,101.3C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    animation: wave 10s linear infinite;
}

.text2 {
    position: absolute;
    white-space: nowrap;
    animation: moveText 20s linear infinite;
    color: #8B4513;
    font-size: 24px;
    font-weight: bold;
    top: 50%;
    transform: translateY(-50%);
}

.button2 {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.button2:hover {
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
}

.btn {
    border: 2px solid black;
    color: black;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease 0s;
}

.primary {
    background-color: #FFFFFF;
    border-color: #8e8326;
    color: #8e8326;
}

/* --------------------------------------------------------------------------
   4. JOURNAL SIDEBAR
   -------------------------------------------------------------------------- */
.journal-sidebar {
    width: 250px;
    height: 100%;
    background: linear-gradient(45deg, #8B4513, #D2691E);
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: 0.3s;
}

.journal-sidebar__header {
    padding: 20px;
    color: #FFF;
    text-align: center;
    font-size: 1.5em;
    background: rgba(0, 0, 0, 0.2);
}

.journal-sidebar__menu-list {
    list-style-type: none;
    padding: 0;
}

.journal-sidebar__menu-item {
    padding: 15px 20px;
    color: #FFF;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.journal-sidebar__menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.journal-sidebar__menu-icon {
    margin-right: 15px;
    font-size: 1.2em;
    animation: float 3s ease-in-out infinite;
}

.journal-sidebar__background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8B4513, #D2691E);
    z-index: -1;
    opacity: 0.3;
    animation: gradientAnimation 15s ease infinite;
    background-size: 400% 400%;
}

/* --------------------------------------------------------------------------
   5. EDITORIAL TEAM & LIST (LEGACY/CLASSIC STYLE)
   -------------------------------------------------------------------------- */
.editorial-list {
    position: relative;
}

.editorial-list li {
    margin-bottom: 1.125rem;
}

.editorial-list .img-profile {
    position: absolute;
    width: 95px;
    height: 105px;
    border: 1px solid #ddd;
    padding: .5rem;
}

.editorial-list .img-profile .imgthumb {
    width: 80px;
    height: 90px;
    overflow: hidden;
    margin: 0 auto;
    object-fit: fill;
}

.editorial-list .img-profile img {
    width: 100%;
    height: 100%;
}

.team-content {
    margin-left: 100px;
    min-height: 130px;
}

.team-content .ico-label {
    width: 18px;
    height: 18px;
    margin-right: .5rem;
}

.team-aff ul li {
    margin-bottom: 0;
}

.team-aff ul li .tm_label {
    display: inline-block;
    width: 80px;
}

.team-aff ul li .ico-label {
    width: 18px;
    height: 18px;
    margin-right: .5rem;
}

/* --------------------------------------------------------------------------
   6. EDITORIAL CONTAINER, GRID & CARDS (MODERN STYLE)
   -------------------------------------------------------------------------- */
.ojs-editorial-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
    color: #1e293b;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.ojs-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 3px solid #b8860b;
}

.ojs-header h2 {
    color: #8c6608;
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ojs-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Toolbar & Search */
.ojs-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    background-color: #fefcf3;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #ebdca8;
    box-sizing: border-box;
}

.ojs-search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.ojs-search-box input {
    width: 100%;
    padding: 9px 15px 9px 38px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ojs-search-box input:focus {
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.ojs-layout-toggle {
    display: flex;
    gap: 8px;
}

.ojs-btn-toggle {
    background-color: #ffffff;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ojs-btn-toggle:hover {
    background-color: #f8fafc;
    border-color: #b8860b;
}

.ojs-btn-toggle.active {
    background-color: #b8860b;
    color: #ffffff;
    border-color: #b8860b;
}

/* Member Grid & Cards */
.ojs-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.ojs-card {
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
    padding: 18px;
    display: flex;
    gap: 16px;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ojs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Avatar & Badge */
.ojs-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ojs-avatar {
    width: 90px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #ebdca8;
    background-color: #f8fafc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.ojs-badge-role {
    margin-top: 6px;
    background-color: #b8860b;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Card Content */
.ojs-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ojs-member-name {
    font-size: 15px;
    font-weight: bold;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.ojs-member-affiliation {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

/* Links & Icons */
.ojs-profile-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ojs-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #1e293b;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.ojs-link-btn:hover {
    color: #b8860b;
}

.icon-box {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
}

.icon-box.scopus {
    border-radius: 4px;
    background-color: #e25920;
}

.icon-box.orcid {
    border-radius: 50%;
    background-color: #a6ce39;
}

/* --------------------------------------------------------------------------
   7. KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1440px; }
}

@keyframes moveText {
    0% { left: 100%; }
    100% { left: -100%; }
}

@keyframes shake {
    10%, 90% { transform: translateY(-50%) translate3d(-1px, 0, 0); }
    20%, 80% { transform: translateY(-50%) translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translateY(-50%) translate3d(-4px, 0, 0); }
    40%, 60% { transform: translateY(-50%) translate3d(4px, 0, 0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .ojs-grid-container {
        grid-template-columns: 1fr;
    }

    .ojs-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ojs-member-affiliation {
        justify-content: center;
    }

    .ojs-profile-links {
        align-items: center;
    }
}