/* ======================================================
   ALMWS FINAL DEMO CLONE THEME (OJS 3.5.0.1)
   ✔ Poppins Font
   ✔ FontAwesome Icons
   ✔ Menu & Search Same Line
   ✔ Dropdown Blue Background
   ✔ Sidebar Buttons Like Demo
   ✔ Article Cards Like Demo
   ✔ Header Banner Full
====================================================== */


/* ==========================
   LOAD DEMO FONT + ICONS
========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');


/* ==========================
   GLOBAL BASE
========================== */
body {
    font-family: "Poppins", sans-serif !important;
    font-size: 15px;
    line-height: 1.7;
    background: url("https://ejournal.tarmizi.id/public/site/images/bg.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #1b1b1b;
}

a, p, li, span, h1, h2, h3, h4 {
    font-family: "Poppins", sans-serif !important;
}


/* ==========================
   MAIN WRAPPER (CENTER WHITE)
========================== */
.pkp_structure_page {
    max-width: 1200px;
    margin: 30px auto;
    background: #ffffff;
    box-shadow: 0px 0px 25px rgba(0,0,0,0.15);
}


/* ==========================
   HEADER BANNER FIX (NO CROP)
========================== */
.pkp_site_name_wrapper {
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 5px solid #0d5fae;
    overflow: hidden;
}

.pkp_site_name_wrapper img {
    width: 100% !important;
    height: 240px !important;
    object-fit: contain !important;
    background: #ffffff;
    display: block;
}

/* Hide text title */
.pkp_site_name {
    display: none !important;
}


/* ==========================
   LOGIN BUTTON (DEMO STYLE)
========================== */
.pkp_navigation_user_wrapper {
    position: absolute;
    top: 15px;
    right: 25px;
    z-index: 999;
}

.pkp_navigation_user > li > a {
    background: #0d5fae !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.25);
}

.pkp_navigation_user > li > a:hover {
    background: #083c6c !important;
}


/* ==========================
   TOP NAVIGATION (MENU + SEARCH SAME LINE)
========================== */
.pkp_navigation_primary_wrapper {
    background: linear-gradient(to bottom, #0d5fae 0%, #094c8a 100%) !important;
    border-bottom: 3px solid #083c6c;
}

/* Fix the bar to allow menu left and search right */
.pkp_navigation_primary_wrapper .pkp_navigation_primary {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0 10px;
}

/* Make menu items inline */
.pkp_navigation_primary li {
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
}

/* Menu link style */
.pkp_navigation_primary li a {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    padding: 12px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    transition: 0.25s;
    border-radius: 0;
}

/* Hover like demo */
.pkp_navigation_primary li a:hover {
    background: rgba(255,255,255,0.18) !important;
    text-decoration: none !important;
}


/* ==========================
   MENU ICONS (DEMO STYLE)
========================== */
.pkp_navigation_primary li a:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 13px;
    display: inline-block;
}

.pkp_navigation_primary li:nth-child(1) a:before { content: "\f015"; } /* HOME */
.pkp_navigation_primary li:nth-child(2) a:before { content: "\f15c"; } /* CURRENT */
.pkp_navigation_primary li:nth-child(3) a:before { content: "\f187"; } /* ARCHIVES */
.pkp_navigation_primary li:nth-child(4) a:before { content: "\f044"; } /* AUTHORS */
.pkp_navigation_primary li:nth-child(5) a:before { content: "\f0a1"; } /* ANNOUNCE */
.pkp_navigation_primary li:nth-child(6) a:before { content: "\f05a"; } /* INFO */


/* ==========================
   SEARCH RIGHT (ALIGN LIKE DEMO)
========================== */
.pkp_navigation_search_wrapper {
    margin-left: auto !important;
    padding-right: 15px;
}

.pkp_navigation_search_wrapper a {
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
}

.pkp_navigation_search_wrapper a:hover {
    color: #ffdd57 !important;
}


/* ==========================
   DROPDOWN MENUS (VISIBLE BLUE)
========================== */
.pkp_navigation_primary ul {
    background: #0d5fae !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    padding: 0 !important;
    margin: 0 !important;
    min-width: 230px;
    z-index: 9999 !important;
}

.pkp_navigation_primary ul li a {
    background: #0d5fae !important;
    color: #fff !important;
    padding: 12px 14px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(255,255,255,0.20);
}

.pkp_navigation_primary ul li a:hover {
    background: #083c6c !important;
}


/* ==========================
   SECTION HEADERS LIKE DEMO
========================== */
.pkp_page_index h2,
.current_issue h2 {
    font-weight: 800;
    color: #0d5fae;
    text-transform: uppercase;
    border-bottom: 3px solid #0d5fae;
    padding-bottom: 6px;
    margin-bottom: 15px;
}


/* ==========================
   ARTICLE LIST CARDS (DEMO STYLE)
========================== */
.obj_article_summary {
    border: 2px solid #0d5fae !important;
    border-radius: 10px;
    padding: 15px;
    margin: 18px 0;
    background: #ffffff;
    box-shadow: 0px 6px 16px rgba(0,0,0,0.12);
}

.obj_article_summary .title a {
    font-weight: 700;
    color: #0d5fae !important;
    font-size: 16px;
}

.obj_galley_link {
    background: #0d5fae !important;
    color: #ffffff !important;
    padding: 8px 14px;
    font-weight: 700;
    border-radius: 5px;
}

.obj_galley_link:hover {
    background: #083c6c !important;
}


/* ==========================
   SIDEBAR BLOCKS (DEMO STYLE)
========================== */
.pkp_structure_sidebar .pkp_block {
    border: 2px solid #0d5fae !important;
    padding: 0 !important;
    margin-bottom: 15px;
}

.pkp_structure_sidebar .pkp_block .title {
    background: #ffffff !important;
    color: #0d5fae !important;
    font-weight: 800 !important;
    padding: 10px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #0d5fae !important;
}

.pkp_structure_sidebar .pkp_block .content a {
    display: block !important;
    background: #0d5fae !important;
    color: #ffffff !important;
    padding: 13px !important;
    text-align: center !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    text-transform: uppercase;
}

.pkp_structure_sidebar .pkp_block .content a:hover {
    background: #083c6c !important;
}


/* ==========================
   FOOTER LIKE DEMO
========================== */
.pkp_structure_footer_wrapper {
    background: #eaeaea;
    border-top: 5px solid #0d5fae;
    padding: 30px;
    text-align: center;
}


/* ==========================
   MOBILE RESPONSIVE
========================== */
@media (max-width: 768px) {
    .pkp_structure_page {
        margin: 0;
        box-shadow: none;
    }

    .pkp_navigation_primary {
        flex-wrap: wrap !important;
    }

    .pkp_navigation_primary li a {
        width: 100%;
    }
}

/* Menu underline effect */
.pkp_navigation_primary li a:hover {
    border-bottom: 3px solid #ffdd57 !important;
}


/* ==========================================
   FINAL FIX: HEADER SPACING + MENU ONE LINE
========================================== */

/* 1) Push menu DOWN (3 inches ≈ 120px) */
.pkp_navigation_primary_wrapper {
    margin-top: 50px !important;  /* move menu downward */
}

/* 2) Make banner area a fixed height so menu never overlaps */
.pkp_site_name_wrapper {
    height: 260px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 3) Ensure banner image stays full */
.pkp_site_name_wrapper img {
    height: 260px !important;
    object-fit: cover !important;
}

/* 4) Menu container flex alignment */
.pkp_navigation_primary_wrapper .pkp_navigation_primary {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* 5) Reduce menu padding slightly so search stays on same line */
.pkp_navigation_primary li a {
    padding: 11px 12px !important;
    font-size: 13px !important;
}

/* 6) Force Search always right (same line) */
.pkp_navigation_search_wrapper {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
}

/* 7) Remove any extra margin that pushes Search down */
.pkp_navigation_search_wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* REMOVE THE BLUE LINE ON HEADER */
.pkp_site_name_wrapper {
    border-bottom: none !important;
}

/* if theme adds an extra line using pseudo elements */
.pkp_site_name_wrapper:before,
.pkp_site_name_wrapper:after {
    display: none !important;
    content: none !important;
}

/* ==========================================
   FORCE MENU + SEARCH ON ONE LINE
========================================== */

/* Make navigation wrapper a flex row */
.pkp_navigation_primary_wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Keep menu in one row */
.pkp_navigation_primary {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

/* Prevent menu items from breaking */
.pkp_navigation_primary li {
    flex: 0 0 auto !important;
}

/* Search stays right and inline */
.pkp_navigation_search_wrapper {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 20px 0 0 !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* Remove any top padding/margin pushing search down */
.pkp_navigation_search_wrapper,
.pkp_navigation_search_wrapper a {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.pkp_navigation_primary li a {
    padding: 11px 12px !important;
    font-size: 12.5px !important;
}

/* ==========================================
   MOBILE FIX: SUPERADMIN MENU OVERLAY ISSUE
========================================== */
@media (max-width: 768px) {

    /* Reset navigation wrapper stacking */
    .pkp_navigation_primary_wrapper {
        position: relative !important;
        z-index: 1 !important;
        overflow: visible !important;
        display: block !important;
    }

    /* Reset navigation primary */
    .pkp_navigation_primary {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        overflow-x: visible !important;
    }

    /* Move search under menu for mobile (clean) */
    .pkp_navigation_search_wrapper {
        margin-left: 0 !important;
        padding: 10px 15px !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }

    /* Fix superadmin panel overlay */
    .pkp_navigation_user_wrapper {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        z-index: 99999 !important;
        margin: 10px 0 !important;
    }

    /* Ensure user dropdown menu is visible properly */
    .pkp_navigation_user ul {
        position: absolute !important;
        left: 0 !important;
        top: 100% !important;
        background: #ffffff !important;
        border: 1px solid #ddd !important;
        z-index: 999999 !important;
        width: auto !important;
        min-width: 180px;
        box-shadow: 0px 8px 20px rgba(0,0,0,0.25);
    }

    /* Fix close X box background */
    .pkp_site_name_wrapper {
        height: auto !important;
    }
}

/* ==========================================
   MOBILE FIX: MENU + LOGIN/REGISTER POSITION
========================================== */
@media (max-width: 768px) {

  /* Make header normal */
  .pkp_structure_page {
      margin: 0 !important;
      width: 100% !important;
      box-shadow: none !important;
  }

  /* Banner fits */
  .pkp_site_name_wrapper img {
      height: auto !important;
      object-fit: contain !important;
  }

  /* NAV BAR FULL WIDTH */
  .pkp_navigation_primary_wrapper {
      display: block !important;
      width: 100% !important;
      margin-top: 0 !important;
      padding: 0 !important;
      overflow: visible !important;
  }

  /* MENU ITEMS STACK NICELY */
  .pkp_navigation_primary {
      display: flex !important;
      flex-wrap: wrap !important;
      justify-content: center !important;
      width: 100% !important;
  }

  /* MENU LINKS FULL WIDTH IN MOBILE */
  .pkp_navigation_primary li {
      width: 50% !important;  /* 2 in a row */
      text-align: center;
  }

  .pkp_navigation_primary li a {
      width: 100% !important;
      justify-content: center !important;
      font-size: 13px !important;
      padding: 10px 8px !important;
  }

  /* SEARCH FULL WIDTH BELOW MENU */
  .pkp_navigation_search_wrapper {
      width: 100% !important;
      text-align: center !important;
      margin: 0 !important;
      padding: 12px 0 !important;
      display: block !important;
  }

  /* USER MENU (LOGIN/REGISTER) GOES TOP RIGHT */
  .pkp_navigation_user_wrapper {
      position: absolute !important;
      top: 8px !important;
      right: 10px !important;
      left: auto !important;
      z-index: 999999 !important;
      margin: 0 !important;
  }

  /* Style login/register button */
  .pkp_navigation_user > li > a {
      background: #0d5fae !important;
      color: #fff !important;
      padding: 6px 12px !important;
      border-radius: 6px !important;
      font-size: 11px !important;
      font-weight: 700 !important;
  }

  /* Fix dropdown user panel */
  .pkp_navigation_user ul {
      right: 0 !important;
      left: auto !important;
      top: 100% !important;
      position: absolute !important;
      z-index: 9999999 !important;
      background: #fff !important;
      border: 1px solid #ddd;
      box-shadow: 0px 8px 20px rgba(0,0,0,0.25);
      min-width: 160px;
  }


}

/* ==========================================
   ✅ FINAL DROPDOWN FIX (OJS 3.5) - NO GAP + STICKY
   Fix: remove default OJS margin/padding + hover bridge
========================================== */

.pkp_navigation_primary_wrapper,
#navigationPrimary,
#navigationPrimary li {
    overflow: visible !important;
    position: relative !important;
    z-index: 999999 !important;
}

/* ✅ Remove any default spacing that creates the gap */
#navigationPrimary li ul {
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

/* ✅ Dropdown Box - attach directly under menu */
#navigationPrimary li ul {
    display: none !important;
    position: absolute !important;
    top: calc(100% - 2px) !important;  /* ✅ overlaps menu by 2px (removes gap) */
    left: 0 !important;

    background: #0d5fae !important;
    min-width: 230px !important;
    z-index: 9999999 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* ✅ Hover Bridge (covers any invisible gap) */
#navigationPrimary li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 12px;   /* bigger bridge */
    background: transparent;
}

/* Dropdown links */
#navigationPrimary li ul li a {
    display: block !important;
    padding: 12px 14px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: #0d5fae !important;
    border-bottom: 1px solid rgba(255,255,255,0.20);
}

#navigationPrimary li ul li a:hover {
    background: #083c6c !important;
}

/* ✅ Sticky open */
#navigationPrimary li:hover > ul,
#navigationPrimary li:focus-within > ul {
    display: block !important;
}

/* ✅ keep open while hovering inside dropdown */
#navigationPrimary li ul:hover {
    display: block !important;
}

/* ✅ Mobile Dropdown */
@media (max-width: 768px) {

    #navigationPrimary li::after {
        display: none !important;
    }

    #navigationPrimary li ul {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
    }
}

/* ==========================================
   ✅ SIDEBAR DEMO STYLE (ALMWS LIKE CLARITY DEMO)
========================================== */

/* Sidebar blocks container spacing */
.pkp_structure_sidebar {
    padding-top: 10px !important;
}

/* Each sidebar block */
.pkp_structure_sidebar .pkp_block {
    border: 2px solid #0d5fae !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    margin-bottom: 18px !important;
    box-shadow: none !important;
}

/* Block title bar (white with blue text) */
.pkp_structure_sidebar .pkp_block .title {
    background: #ffffff !important;
    color: #0d5fae !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    padding: 14px 10px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #0d5fae !important;
}

/* Sidebar content area */
.pkp_structure_sidebar .pkp_block .content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Sidebar links become full buttons */
.pkp_structure_sidebar .pkp_block .content a {
    display: block !important;
    width: 100% !important;
    background: #0d5fae !important;
    color: #ffffff !important;
    padding: 14px 10px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(255,255,255,0.20) !important;
    transition: 0.25s ease-in-out !important;
}

/* Hover same as demo */
.pkp_structure_sidebar .pkp_block .content a:hover {
    background: #083c6c !important;
    color: #ffdd57 !important;
    text-decoration: none !important;
}

/* Remove bullets if block has list */
.pkp_structure_sidebar .pkp_block ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove spacing on list items */
.pkp_structure_sidebar .pkp_block ul li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Last button no border */
.pkp_structure_sidebar .pkp_block .content a:last-child {
    border-bottom: none !important;
}

/* ==========================================
   ✅ EXACT DEMO SIDEBAR MENU STYLE
   Like screenshot (blue gradient buttons + white title)
========================================== */

/* Sidebar block container */
.pkp_structure_sidebar .pkp_block {
    border: 2px solid #0d5fae !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
}

/* Title header (white with blue text) */
.pkp_structure_sidebar .pkp_block .title {
    background: #ffffff !important;
    color: #0d5fae !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    padding: 14px 10px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #0d5fae !important;
    margin: 0 !important;
}

/* Remove default spacing inside block */
.pkp_structure_sidebar .pkp_block .content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove list bullets */
.pkp_structure_sidebar .pkp_block ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove li spacing */
.pkp_structure_sidebar .pkp_block ul li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Sidebar menu links (BLUE GRADIENT LIKE DEMO) */
.pkp_structure_sidebar .pkp_block .content a {
    display: block !important;
    width: 100% !important;

    background: linear-gradient(to bottom, #0d5fae 0%, #083c6c 100%) !important;
    color: #ffffff !important;

    padding: 14px 10px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;

    border-bottom: 1px solid rgba(255,255,255,0.20) !important;
    transition: 0.25s ease-in-out !important;
}

/* Hover effect */
.pkp_structure_sidebar .pkp_block .content a:hover {
    background: linear-gradient(to bottom, #083c6c 0%, #052c4f 100%) !important;
    color: #ffdd57 !important;
    text-decoration: none !important;
}

/* Last item no border */
.pkp_structure_sidebar .pkp_block .content a:last-child {
    border-bottom: none !important;
}

/* ==========================================
   ✅ CUSTOM BLOCK DEMO BUTTON STYLE
   (Submission + Article Template Like Demo)
========================================== */

.almws-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    max-width: 260px;  /* adjust if you want full width */
    margin: 10px auto !important;

    border-radius: 12px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    font-family: "Poppins", sans-serif !important;

    box-shadow: 0px 6px 18px rgba(0,0,0,0.20) !important;
    transition: 0.25s ease-in-out !important;
}

/* Left text part */
.almws-btn-text {
    flex: 1 !important;
    padding: 14px 15px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #fff !important;
    text-align: left !important;
}

/* Right icon box */
.almws-btn-icon {
    width: 65px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: #fff !important;
}

/* ✅ SUBMISSION BUTTON (BLACK like demo) */
.almws-submit {
    background: #222 !important;
}

.almws-submit .almws-btn-icon {
    background: #111 !important;
}

/* ✅ TEMPLATE DOWNLOAD BUTTON (BLUE like demo) */
.almws-download {
    background: #1e40ff !important;
}

.almws-download .almws-btn-icon {
    background: #1331c9 !important;
}

/* Hover effect */
.almws-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.30) !important;
}

/* ==========================================
   ✅ DEMO SIDEBAR BUTTONS (EXACT MATCH)
========================================== */

/* Sidebar heading style like demo */
.almws-side-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #777 !important;
    margin: 18px 0 8px !important;
    text-transform: uppercase !important;
    position: relative;
    padding-bottom: 6px;
}

/* blue underline under heading */
.almws-side-title:after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: #0d5fae;
    margin-top: 5px;
}

/* MAIN BUTTON STYLE */
.almws-demo-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 230px !important;       /* ✅ same as screenshot */
    height: 62px !important;       /* ✅ same height */

    margin: 10px auto 22px !important;
    border-radius: 12px !important;
    overflow: hidden !important;

    text-decoration: none !important;
    font-family: "Poppins", sans-serif !important;

    box-shadow: 0px 6px 18px rgba(0,0,0,0.20) !important;
    transition: 0.25s ease-in-out !important;
}

/* TEXT AREA */
.almws-demo-text {
    flex: 1 !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #fff !important;
    padding: 0 10px !important;
}

/* ICON BOX RIGHT SIDE */
.almws-demo-icon {
    width: 72px !important;
    height: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 26px !important;
    color: #fff !important;
    position: relative !important;
}

/* ICON WHITE OUTLINE SQUARE */
.almws-demo-icon i {
    border: 2px solid #fff !important;
    padding: 10px !important;
    border-radius: 8px !important;
    font-size: 24px !important;
}

/* ✅ SUBMISSION (BLACK) */
.almws-demo-submit {
    background: #2a2a2a !important;
}
.almws-demo-submit .almws-demo-icon {
    background: #111 !important;
}

/* ✅ ARTICLE TEMPLATE (BLUE) */
.almws-demo-download {
    background: #1f49ff !important;
}
.almws-demo-download .almws-demo-icon {
    background: #1336d9 !important;
}

/* Hover effect (small lift like demo) */
.almws-demo-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.28) !important;
}

/* ==========================================
   ✅ REMOVE BLUE BORDERS AROUND SIDEBAR BLOCKS
========================================== */

/* Remove outer border of sidebar blocks */
.pkp_structure_sidebar .pkp_block {
    border: none !important;
    box-shadow: none !important;
}

/* Remove title underline/border */
.pkp_structure_sidebar .pkp_block .title {
    border: none !important;
}

/* Remove any borders inside block content */
.pkp_structure_sidebar .pkp_block .content {
    border: none !important;
}
/* ==========================================
   ✅ SIDEBAR COMPACT CENTER STYLE (LIKE DEMO)
========================================== */

/* Give sidebar internal padding */
.pkp_structure_sidebar {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Make blocks centered and not full width */
.pkp_structure_sidebar .pkp_block {
    width: 100% !important;
    max-width: 260px !important;  /* ✅ compact width like demo */
    margin: 0 auto 22px auto !important;
}

/* Also center custom buttons */
.almws-demo-btn {
    max-width: 260px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================
   ✅ EDITORIAL TEAM BLOCK (DEMO STYLE)
========================================== */

.almws-editorial-block {
    padding: 20px !important;
}

.almws-editorial-title {
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0d5fae !important;
    margin-bottom: 25px !important;
    text-transform: uppercase !important;
}

.almws-editorial-wrap {
    max-width: 750px;
    margin: 0 auto;
    background: linear-gradient(to bottom right, #dbeeff, #ffffff);
    border: 1px solid #aad4f5;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

/* Each editor row */
.almws-editor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.almws-editor-card:last-child {
    border-bottom: none;
}

/* Editor image */
.almws-editor-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #0d5fae;
}

/* Text */
.almws-editor-name {
    font-weight: 800;
    font-size: 16px;
    color: #1a1a1a;
}

.almws-editor-role {
    font-size: 13px;
    font-weight: 700;
    color: #0d5fae;
}

.almws-editor-inst {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.almws-editor-link {
    font-size: 12px;
    font-weight: 700;
    color: #0077cc;
    text-decoration: none;
}

.almws-editor-link:hover {
    color: #083c6c;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .almws-editor-card {
        flex-direction: column;
        text-align: center;
    }
    .almws-editor-card img {
        margin-bottom: 8px;
    }
}

/* ==========================================
   ✅ EDITORIAL TEAM FIXES (NAME + BUTTON SMALL)
========================================== */

/* Name in ONE LINE (no break) + smaller */
.almws-editor-name {
    font-weight: 700 !important;
    font-size: 14px !important;
    white-space: nowrap !important;   /* ✅ Force single line */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Role text slightly smaller */
.almws-editor-role {
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* University smaller */
.almws-editor-inst {
    font-size: 11px !important;
}

/* ✅ Google Scholar button 50% smaller */
.almws-editor-link {
    display: inline-block !important;
    padding: 6px 12px !important;   /* ✅ smaller */
    font-size: 11px !important;     /* ✅ smaller */
    font-weight: 700 !important;
    border-radius: 6px !important;

    background: linear-gradient(to bottom, #0d5fae 0%, #083c6c 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    margin-top: 6px !important;

    width: auto !important;         /* ✅ not full width */
}

/* Hover */
.almws-editor-link:hover {
    background: #052c4f !important;
    color: #ffdd57 !important;
}

/* ==========================================
   ✅ GOOGLE SCHOLAR BUTTON 50% SHORTER (FORCE FIX)
========================================== */

.almws-editor-link {
    display: inline-flex !important;      /* ✅ no full block */
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;               /* ✅ auto width */
    min-width: 120px !important;          /* ✅ smaller */
    height: 32px !important;              /* ✅ SHORTER (50%) */

    padding: 0 12px !important;           /* ✅ small padding */
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    border-radius: 6px !important;
    background: linear-gradient(to bottom, #0d5fae 0%, #083c6c 100%) !important;
    color: #fff !important;
    text-decoration: none !important;

    margin-top: 6px !important;
}

/* ==========================================
   ✅ FINAL FIX: GOOGLE SCHOLAR BUTTON PERFECT CENTER
========================================== */

/* Button perfectly centered text */
.almws-editor-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 32px !important;
    min-width: 135px !important;
    padding: 0 14px !important;

    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px !important;

    line-height: 1 !important;            /* ✅ FIX: removes text going down */
    white-space: nowrap !important;
    text-align: center !important;

    border-radius: 7px !important;
    background: linear-gradient(to bottom, #0d5fae 0%, #083c6c 100%) !important;
    color: #fff !important;
    text-decoration: none !important;

    margin-top: 6px !important;           /* ✅ clean spacing */
}

/* Add space so button never cuts */
.almws-editor-card {
    padding-bottom: 18px !important;
}

/* ==========================================
   ✅ CENTER TEXT PERFECTLY INSIDE DEMO BUTTONS
========================================== */

.almws-demo-btn {
    display: flex !important;
    align-items: center !important;        /* ✅ vertical center */
    justify-content: center !important;    /* ✅ horizontal center */
    text-align: center !important;
}

/* Text center + line height fix */
.almws-demo-text {
    display: block !important;
    width: 100% !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================
   ✅ MOBILE FOOTER FIX (NO OVERFLOW + ALIGNED)
========================================== */

@media (max-width: 768px) {

  /* Footer wrapper should never overflow */
  .pkp_structure_footer_wrapper {
      width: 100% !important;
      padding: 25px 15px !important;
      box-sizing: border-box !important;
      overflow-x: hidden !important;
      text-align: center !important;
  }

  /* Footer content should wrap nicely */
  .pkp_structure_footer {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 auto !important;
      box-sizing: border-box !important;
      overflow-x: hidden !important;
  }

  /* Prevent long links from pushing outside */
  .pkp_structure_footer a {
      word-break: break-word !important;
      overflow-wrap: break-word !important;
  }

  /* Fix images inside footer (logos etc.) */
  .pkp_structure_footer img {
      max-width: 100% !important;
      height: auto !important;
  }

  /* Fix tables if any inside footer */
  .pkp_structure_footer table {
      width: 100% !important;
      max-width: 100% !important;
      display: block !important;
      overflow-x: auto !important;
  }
}
/* ==========================================
   ✅ FOOTER FIX (NO RIGHT OVERFLOW / MOBILE PERFECT)
========================================== */

.pkp_structure_footer_wrapper,
.pkp_structure_footer,
.pkp_structure_footer * {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* Prevent horizontal scroll from footer */
.pkp_structure_footer_wrapper {
    overflow-x: hidden !important;
}

/* Footer content should wrap */
.pkp_structure_footer {
    width: 100% !important;
    text-align: center !important;
}

/* Long text (email, ISSN, URLs) should wrap nicely */
.pkp_structure_footer p,
.pkp_structure_footer span,
.pkp_structure_footer div,
.pkp_structure_footer a {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

/* Make footer logo responsive */
.pkp_structure_footer img {
    max-width: 100% !important;
    height: auto !important;
}

/* ✅ Mobile only adjustments */
@media (max-width: 768px) {

    .pkp_structure_footer_wrapper {
        padding: 25px 12px !important;
        text-align: center !important;
    }

    /* Reduce font size a little so it fits */
    .pkp_structure_footer {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    /* Contact line breaking nicely */
    .pkp_structure_footer strong,
    .pkp_structure_footer a {
        display: inline-block !important;
        max-width: 100% !important;
    }
}

/* ==========================================
   ✅ FINAL WORKING MOBILE MENU FIX (OJS 3.5)
========================================== */
@media (max-width: 768px) {

  /* Show hamburger toggle */
  .pkp_site_nav_toggle,
  .pkp_nav_toggle,
  .pkp_nav_list .pkp_nav_toggle {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      position: relative !important;
      z-index: 9999999 !important;
      margin: 12px 15px !important;
  }

  /* Show close button too */
  .pkp_site_nav_menu .close,
  .pkp_nav_list .close {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      z-index: 9999999 !important;
  }

  /* Hide menu list by default */
  #navigationPrimary {
      display: none !important;
      flex-direction: column !important;
      width: 100% !important;
      background: #0d5fae !important;
      margin: 0 !important;
      padding: 0 !important;
  }

/* ✅ Show menu when OJS opens */
.pkp_site_nav_menu.is_open #navigationPrimary,
.pkp_site_nav_menu.open #navigationPrimary,
.pkp_site_nav_menu.isOpen #navigationPrimary,
.pkp_site_nav_menu--isOpen #navigationPrimary {
    display: flex !important;
}


  /* Menu items */
  #navigationPrimary li {
      width: 100% !important;
      border-bottom: 1px solid rgba(255,255,255,0.25) !important;
  }

  /* Menu links */
  #navigationPrimary li a {
      width: 100% !important;
      display: block !important;
      padding: 14px 16px !important;
      font-size: 14px !important;
      font-weight: 700 !important;
      text-align: left !important;
      color: #fff !important;
  }

  #navigationPrimary li a:hover {
      background: #083c6c !important;
  }
}
/* =====================================================
   ✅ ARTICLE CARDS LIKE SCREENSHOT (WITH STATS + ICONS)
===================================================== */

.obj_article_summary {
    border: 2px solid #0d5fae !important;
    border-radius: 12px !important;
    padding: 18px 18px 12px !important;
    margin: 18px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* ✅ Article Title */
.obj_article_summary .title a {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0d5fae !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* ✅ Author line */
.obj_article_summary .meta {
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-top: 6px !important;
    color: #333 !important;
}

/* ✅ PDF/DOCX BUTTONS */
.obj_article_summary .galleys_links a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;

    background: #0d5fae !important;
    color: #fff !important;

    padding: 7px 16px !important;
    border-radius: 6px !important;

    font-weight: 800 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;

    margin-right: 8px !important;
    margin-top: 8px !important;

    box-shadow: 0 4px 12px rgba(0,0,0,0.10) !important;
    transition: 0.2s ease-in-out !important;
}

/* ✅ Icon inside buttons */
.obj_article_summary .galleys_links a::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 13px;
}

.obj_article_summary .galleys_links a[href*=".pdf"]::before {
    content: "\f1c1"; /* PDF icon */
}

.obj_article_summary .galleys_links a[href*=".doc"]::before,
.obj_article_summary .galleys_links a[href*=".docx"]::before {
    content: "\f1c2"; /* Word icon */
}

/* Hover */
.obj_article_summary .galleys_links a:hover {
    background: #083c6c !important;
    transform: translateY(-2px);
}

/* ✅ DOI RIGHT SIDE */
.obj_article_summary .doi {
    position: absolute !important;
    right: 18px !important;
    top: 62px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #083c6c !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* DOI icon */
.obj_article_summary .doi::before {
    content: "\f4d7"; /* link icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #f39c12;
}

/* =====================================================
   ✅ STATISTICS ROW (VIEWS / PDF / DOCX)
===================================================== */

.obj_article_summary .stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 18px !important;

    margin-top: 14px !important;
    padding-top: 12px !important;

    border-top: 1px solid rgba(0,0,0,0.12) !important;
}

/* Each stat item */
.obj_article_summary .stats span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;

    font-size: 12px !important;
    font-weight: 800 !important;
    color: #333 !important;
}

/* ✅ Stats Icons */
.obj_article_summary .stats span::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
    color: #0d5fae;
}

/* Abstract Views icon */
.obj_article_summary .stats span:nth-child(1)::before {
    content: "\f080"; /* bar chart icon */
}

/* PDF Downloads icon */
.obj_article_summary .stats span:nth-child(2)::before {
    content: "\f1c1"; /* pdf icon */
}

/* DOCX Downloads icon */
.obj_article_summary .stats span:nth-child(3)::before {
    content: "\f1c2"; /* word icon */
}

/* =====================================================
   ✅ MOBILE FIX (DOI goes below)
===================================================== */

@media (max-width: 768px) {

    .obj_article_summary {
        padding: 16px 14px 12px !important;
    }

    /* DOI becomes normal line */
    .obj_article_summary .doi {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        margin-top: 10px !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }

    /* Stats align nicely */
    .obj_article_summary .stats {
        gap: 12px !important;
        font-size: 11px !important;
    }
}
