/**
 * =========================================================================
 * OJS 3.3 CUSTOM STYLESHEET (styleSheet.css)
 * Journal: MASILE: Jurnal Studi Ilmu Keislaman (MASILE)
 * Publisher: Institut Pesantren Babakan (IPEBA) Cirebon
 * Compatible with: Open Journal Systems 3.3.0.x LTS (Default & Immersion Theme)
 * =========================================================================
 */

/* 1. ROOT VARIABLES & PALETTE */
:root {
  --pkp-primary-color: #008B44;
  --pkp-accent-color: #0a474c;
  --pkp-text-color: #2b2b2b;
  --pkp-heading-font: 'Merriweather', 'PT Serif', Georgia, serif;
  --pkp-body-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pkp-border-radius: 12px;
}

body {
  font-family: var(--pkp-body-font);
  color: var(--pkp-text-color);
  background-color: #f7f9fa;
  line-height: 1.6;
}

/* 2. HEADER & BRANDING */
.pkp_structure_head {
  background: linear-gradient(135deg, var(--pkp-accent-color) 0%, #032124 100%) !important;
  border-bottom: 3px solid var(--pkp-primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pkp_site_name a {
  color: #ffffff !important;
  font-family: var(--pkp-heading-font);
  font-weight: 700;
  text-decoration: none;
}

/* 3. PRIMARY NAVIGATION BAR */
.pkp_site_nav_menu {
  background-color: var(--pkp-primary-color) !important;
}

#navigationPrimary > li > a {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

#navigationPrimary > li > a:hover,
#navigationPrimary > li.current > a {
  background-color: rgba(0, 0, 0, 0.18) !important;
  color: #ffeb3b !important;
}

/* 4. MAIN ARTICLE LIST (TOC) & DOI */
.obj_article_summary {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--pkp-border-radius);
  padding: 16px 20px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.obj_article_summary:hover {
  border-color: var(--pkp-primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.obj_article_summary .title a {
  font-family: var(--pkp-heading-font);
  color: #1e293b;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  line-height: 1.4;
}

.obj_article_summary .title a:hover {
  color: var(--pkp-primary-color);
}

/* DOI in Summary Styling */
.doiInSummary {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-family: monospace;
}

.doiInSummary a {
  color: var(--pkp-primary-color) !important;
  font-weight: 600;
  text-decoration: none;
}

.doiInSummary a:hover {
  text-decoration: underline;
}

/* PDF Galley Link */
.obj_galley_link.pdf {
  background-color: var(--pkp-primary-color) !important;
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.obj_galley_link.pdf:hover {
  background-color: #0b6131 !important;
  transform: translateY(-1px);
}

/* 5. SIDEBAR CUSTOM BLOCKS */
.pkp_structure_sidebar .pkp_block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--pkp-border-radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.pkp_structure_sidebar .pkp_block .title,
.pkp_block .content > p > span[style*="background: #0a474c"],
.pkp_block .content > p > span[style*="background:#0a474c"] {
  background: var(--pkp-accent-color) !important;
  color: #ffffff !important;
  padding: 10px 14px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

/* Main Menu Custom Block */
#customblock-menu2 .content > div {
  background: var(--pkp-primary-color) !important;
}

/* 6. FOOTER STYLING */
.pkp_structure_footer_wrapper {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 30px 20px;
  border-top: 4px solid var(--pkp-primary-color);
  font-size: 13px;
}

.pkp_structure_footer_wrapper a {
  color: #38bdf8;
  text-decoration: none;
}

.pkp_structure_footer_wrapper a:hover {
  text-decoration: underline;
}
