/**
 * Open Journal Systems - JEMA Jurnal UNISMA Theme
 * Enhanced with Modern UI, Theme Backgrounds & Smooth Animations
 * Ver 2.2.0 (2026 Integrated Version)
 */

/* ==========================================================================
   1. VARIABLES & SYSTEM SETUP
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cuprum:ital,wght@0,400;0,700;1,400;1,700&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette */
  --primary-color: #0d613f;
  --primary-hover: #08432a;
  --accent-color: #fcee0f;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --sidebar-bg: #eeeeee;
  
  /* Khas Brand Background Colors */
  --bg-page-gradient: linear-gradient(135deg, #f4f8f6 0%, #e8f2ed 100%);
  --bg-card-theme: #f0f7f4;
  --bg-card-active: #e2f0e8;

  /* Typography */
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Cuprum', sans-serif;

  /* Global Transitions */
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 4px 15px rgba(13, 97, 63, 0.08);
  --shadow-hover: 0 8px 25px rgba(13, 97, 63, 0.18);
}

/* Base Style Reset with Brand Background */
body {
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg-page-gradient);
  background-attachment: fixed;
}

#container {
  background: url(http://riset.unisma.ac.id/index.php/jipemas/manager/files/symphony.png);
  min-width: 730px !important;
  text-align: center;
}

#body {
  margin: -40px auto 0;
  width: 1020px !important;
  padding-bottom: 20px;
  display: inline-block !important;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

#main {
  float: left;
  margin-left: 0;
  margin-right: 0 !important;
  overflow: visible !important;
  padding: 0;
  position: relative;
  width: 805px;
  display: inline-block !important;
}

#headerTitle, #navbar {
  width: 1020px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (Animatif & Responsive)
   ========================================================================== */
#header {
  background-color: transparent;
  padding-bottom: 40px;
  display: inline-block !important;
}

#header h1 {
  color: #111;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.4em;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 120px;
  padding: 0;
  text-shadow: 1px 1px #fff;
}

#headerTitle img {
  float: left;
  margin-right: 20px;
  display: inline-block;
}

.pkp_structure_head {
  background-color: var(--primary-color);
  border-bottom: 1px solid #ddd;
  height: auto;
}

#navbar {
  background-color: var(--primary-color);
  border: 0;
  height: 40px;
  margin-bottom: 10px;
  margin-left: 0 !important;
  padding: 0;
  text-align: left;
  clear: both;
  display: inline-block !important;
}

#navbar ul {
  margin: 0;
  padding: 0 0 0 10px;
}

#navbar ul li {
  float: left;
  margin: 0;
  padding: 0;
}

#navbar a, #navbar a:link, #navbar a:visited {
  color: var(--text-light);
  display: inline-block;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 40px;
  padding: 0 12px;
  transition: var(--transition-fast);
}

#navbar a:hover {
  background: var(--accent-color);
  color: var(--text-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Primary Navigation Bar Modifications */
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper {
  background-color: var(--accent-color);
  height: auto;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a {
  font-family: var(--font-body);
  color: var(--text-dark) !important;
  font-weight: 600 !important;
  padding: 0 15px !important;
  line-height: 40px !important;
  transition: var(--transition-fast);
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a:hover {
  background: var(--primary-color) !important;
  color: var(--accent-color) !important;
  border-radius: 6px !important;
  transform: scale(1.03);
}

/* ==========================================================================
   3. SIDEBAR & MENU (Theme Backgrounds)
   ========================================================================== */
#leftSidebar {
  display: none;
  border-right: 1px solid #ccc;
  float: left;
  width: 0;
}

#rightSidebar {
  float: right;
  width: 191px;
  margin: 40px 0 0 0;
  padding: 10px;
  background-color: var(--bg-card-theme);
  border-radius: 10px;
  border: 1px solid rgba(13, 97, 63, 0.1);
  height: auto;
  overflow: hidden;
  display: inline-block !important;
}

#rightSidebar div.block {
  border: 0;
  color: inherit;
  padding: 0 0 10px;
  margin-bottom: 5px;
}

.pkp_block .title,
#rightSidebar div.block span.blockTitle {
  display: block;
  padding: 0.6em 10px;
  text-align: center;
  background: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  font-size: 0.9rem;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

ul.sidemenu {
  padding-left: 0 !important;
  margin: 10px 0;
}

ul.sidemenu li {
  padding: 0;
  margin-bottom: 6px;
  list-style: none;
}

ul.sidemenu li a {
  background: var(--primary-color);
  color: var(--text-light);
  display: block;
  padding: 0.6em 10px;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition-normal);
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

ul.sidemenu li a:hover {
  background-color: var(--accent-color);
  color: var(--text-dark);
  transform: translateX(4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sidemenu .show a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.sidemenu .show a:hover::after {
  width: 90%;
}

/* ==========================================================================
   4. ARTICLE & CONTENT CARDS (Background Khas Hijau Jurnal)
   ========================================================================== */
#content h1, #content h2, #content h3, #content h4, #main > h2 {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 700;
}

#content, #main > h2 {
  padding-left: 20px;
  padding-right: 20px;
}

.pkp_structure_main {
  text-align: justify;
}

/* Article Cards dengan Background Khas */
.obj_article_summary {
  margin-bottom: 25px;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--bg-card-theme);
  border: 1px solid rgba(13, 97, 63, 0.12);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
}

.obj_article_summary:hover {
  transform: translateY(-4px);
  background: var(--bg-card-active);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

/* Galley PDF Buttons */
.obj_galley_link {
  font-weight: 700;
  text-transform: capitalize !important;
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
  padding: 5px 15px !important;
  border-radius: 20px !important;
  transition: var(--transition-fast) !important;
  display: inline-block;
}

.obj_galley_link:hover {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  box-shadow: 0 3px 8px rgba(13, 97, 63, 0.3);
  transform: scale(1.05);
}

/* Metadata Icons (DOI & Authors) */
.articleDOI, .tocDOI {
  background: url(http://riset.unisma.ac.id/public/site/images/alfianid/icon-doi.png) 1px 2px no-repeat;
  margin-top: 6px;
  padding-left: 28px;
}

.tocAuthors {
  background: url(http://riset.unisma.ac.id/public/site/images/alfianid/icon-group.png) 1px 2px no-repeat;
  font-style: italic;
  padding-left: 28px;
  padding-bottom: 5px;
}

/* ==========================================================================
   5. UTILITIES, ETHICS ACCORDION & POLICIES
   ========================================================================== */
input[type=button], input[type=submit] {
  background: var(--primary-color);
  border: none;
  border-radius: 6px;
  color: var(--text-light);
  padding: 6px 16px;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
}

input[type=button]:hover, input[type=submit]:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.linkHitam { color: #000; }
.linkPutih { color: #fff; }
.linkMerah { color: #d9534f; }

/* Styling Accordion Ethics & Policy dengan Background Warna Khas Jurnal */
.ethics-card details, 
.ethics-wrapper details,
.ai-policy-wrapper details,
.policy-wrapper details {
  background: #ffffff;
  border: 1px solid rgba(13, 97, 63, 0.15);
  border-left: 4px solid #2e7d32;
  border-radius: 0 6px 6px 0;
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 12px 16px;
  transition: var(--transition-fast);
}

.ethics-card details[open], 
.ethics-wrapper details[open],
.ai-policy-wrapper details[open],
.policy-wrapper details[open] {
  background: #f4f9f4;
  box-shadow: inset 0 0 10px rgba(13, 97, 63, 0.03);
}

.ethics-card summary, 
.ethics-wrapper summary,
.ai-policy-wrapper summary,
.policy-wrapper summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2e7d32;
  user-select: none;
}

.ethics-card summary:hover, 
.ethics-wrapper summary:hover,
.ai-policy-wrapper summary:hover,
.policy-wrapper summary:hover {
  color: #1b5e20;
}

.ethics-card details p, 
.ethics-wrapper details p,
.ai-policy-wrapper details p,
.policy-wrapper details p {
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.ai-policy-wrapper, .policy-wrapper {
  max-width: 900px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  color: #333333;
}

.ai-policy-wrapper .blockTitle,
.policy-wrapper .blockTitle {
  font-size: 20px;
  font-weight: bold;
  color: #1b5e20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-policy-wrapper .card-header,
.policy-wrapper .card-header {
  border-bottom: 2px solid #e8f5e9;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

/* ==========================================================================
   6. ARCHIVE PAGE & ISSUE LIST STYLING (Halaman Arsip J-REaLL)
   ========================================================================== */
.obj_issue_summary,
.issue_archive,
.issues_archive,
ul.issues_archive {
  margin-top: 5px !important;
  margin-bottom: 8px !important;
  padding: 10px 15px !important;
}

.obj_issue_summary {
  background: var(--bg-card-theme) !important;
  border: 1px solid rgba(13, 97, 63, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(13, 97, 63, 0.05) !important;
  transition: var(--transition-fast) !important;
  display: flex !important;
  align-items: center;
  gap: 15px;
}

.obj_issue_summary:hover {
  background: var(--bg-card-active) !important;
  transform: translateY(-2px) !important;
  border-color: var(--primary-color) !important;
  box-shadow: var(--shadow-soft) !important;
}

.obj_issue_summary .cover,
.issue_archive img,
.obj_issue_summary img {
  max-width: 70px !important;
  height: auto !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
  margin: 0 !important;
}

.obj_issue_summary .title,
.obj_issue_summary h2,
.obj_issue_summary h3 {
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.3 !important;
}

.obj_issue_summary .title a {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  transition: var(--transition-fast) !important;
}

.obj_issue_summary .title a:hover {
  color: var(--primary-hover) !important;
  text-decoration: underline !important;
}

.obj_issue_summary .description,
.obj_issue_summary .series {
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  font-size: 0.85rem !important;
  color: var(--text-dark) !important;
  line-height: 1.4 !important;
}

/* ==========================================================================
   7. INDEXING & ABSTRACTING GRID
   ========================================================================== */
.indexing-wrapper {
  max-width: 900px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
}

.indexing-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #2e7d32;
  padding: 24px;
}

.indexing-title {
  color: #1b5e20;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #e8f5e9;
  padding-bottom: 10px;
}

.indexing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.indexing-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.indexing-item:nth-child(1)  { animation-delay: 0.05s; }
.indexing-item:nth-child(2)  { animation-delay: 0.10s; }
.indexing-item:nth-child(3)  { animation-delay: 0.15s; }
.indexing-item:nth-child(4)  { animation-delay: 0.20s; }
.indexing-item:nth-child(5)  { animation-delay: 0.25s; }
.indexing-item:nth-child(6)  { animation-delay: 0.30s; }
.indexing-item:nth-child(7)  { animation-delay: 0.35s; }
.indexing-item:nth-child(8)  { animation-delay: 0.40s; }
.indexing-item:nth-child(9)  { animation-delay: 0.45s; }
.indexing-item:nth-child(10) { animation-delay: 0.50s; }
.indexing-item:nth-child(11) { animation-delay: 0.55s; }

.indexing-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: #f4f9f4;
  color: #2e7d32;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  border-left: 4px solid #2e7d32;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.indexing-link i {
  font-size: 18px;
  color: #2e7d32;
  transition: transform 0.3s ease;
}

.indexing-link:hover {
  background-color: #2e7d32;
  color: #ffffff;
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(46, 125, 50, 0.25);
}

.indexing-link:hover i {
  color: #ffffff;
  transform: scale(1.2) rotate(5deg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   8. FOOTER LOGO CAROUSEL (REPLACED: Smooth, Uniform & Interactive)
   ========================================================================== */
.body_logo {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 30px auto 10px;
  padding: 20px 0;
  overflow: hidden;
  background: var(--bg-card-theme, #f0f7f4);
  border-radius: 12px;
  border: 1px solid rgba(13, 97, 63, 0.12);
  box-shadow: inset 0 0 15px rgba(13, 97, 63, 0.04);
}

/* Masking Gradasi Kiri & Kanan Carousel */
.body_logo::before,
.body_logo::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.body_logo::before {
  left: 0;
  background: linear-gradient(to right, rgba(240, 247, 244, 1), rgba(240, 247, 244, 0));
}

.body_logo::after {
  right: 0;
  background: linear-gradient(to left, rgba(240, 247, 244, 1), rgba(240, 247, 244, 0));
}

.slide_logo {
  display: flex;
  width: 100%;
}

.track_logo {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 30px;
  animation: logo_scroll 30s linear infinite;
  will-change: transform;
}

.track_logo:hover {
  animation-play-state: paused;
}

.logo {
  flex: 0 0 160px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%) opacity(0.9);
  transition: all 0.35s ease;
}

/* Efek Kilatan Cahaya saat Hover */
.logo::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.logo:hover::after {
  left: 120%;
  opacity: 1;
}

.logo:hover {
  transform: translateY(-5px) scale(1.04);
  border-color: #2e7d32;
  box-shadow: 0 8px 18px rgba(46, 125, 50, 0.2);
}

.logo:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

@keyframes logo_scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  #body, #main, #headerTitle, #navbar {
    width: 100% !important;
  }
  #rightSidebar {
    float: none;
    width: 100%;
  }
}