@charset "utf-8";
/*
  CAPSI Website Theme
  Based on https://www.capsi.wits.ac.za/
  Color Palette: Dark Red/Maroon, Orange/Gold accents, White, Dark Grey
*/

:root {
  /* CAPSI Primary Colors */
  --capsi-red: #8B2323;
  --capsi-red-dark: #6B1A1A;
  --capsi-red-light: #A83A3A;
  --capsi-orange: #FF8C00;
  --capsi-gold: #FFB81C;
  --capsi-gold-dark: #E0A114;
  
  /* Neutral Colors */
  --capsi-white: #FFFFFF;
  --capsi-off-white: #F5F5F0;
  --capsi-light-beige: #F9F9F5;
  --capsi-text-dark: #1A1A1A;
  --capsi-text-grey: #4A4A4A;
  --capsi-text-light: #666666;
  
  /* Legacy support */
  --capsi-navy: #003366;
  --capsi-navy-700: #02284f;
  --wbs-navy: #003366;
  --wbs-gold: #ffb81c;
}

/* Base Styles */
body {
  color: var(--capsi-text-dark);
  background-color: var(--capsi-white);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.site_boxed {
  background-color: var(--capsi-white);
}

/* Full Width Layout - Override site_boxed constraints */
body.site_boxed #main_wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  border-left: none !important;
  border-right: none !important;
}

/* Full Width Content Container */
.content {
  max-width: 100% !important;
  width: 100% !important;
}

/* Remove padding from site_boxed content */
body.site_boxed .content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Content wrapper with max-width and side margins for readability */
.content > .rows_container,
.content > .internal_post_con {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure rows_container matches header width - handles both inside and outside .content */
.content_section > .rows_container,
.content_section .rows_container,
.content_section .content > .rows_container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 60px !important;
  padding-right: 60px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Full-width hero sections with side margins matching header */
.content_section {
  width: 100%;
}

.content_section > .content {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 60px !important;
  padding-right: 60px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Hero sections - same margins as header */
.content_section .content > .full_width {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
}

.content_section .content > .rows_container,
.content_section .content > .internal_post_con {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 60px !important;
  padding-right: 60px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Content blocks within sections - inherit parent width */
.content_section .content_block,
.content_section .col-md-8,
.content_section .col-md-9,
.content_section .col-md-12 {
  max-width: 100%;
  box-sizing: border-box;
}

/* Header and Footer full width with side margins matching page content */
#site_header,
#footer {
  width: 100% !important;
  max-width: 100% !important;
}

/* Header content - same margins as page content */
#site_header .content {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 60px !important;
  padding-right: 60px !important;
  width: 100% !important;
}

#footer .container,
#footer .content,
#footer .rows_container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
}

/* Topbar full width with side margins matching page content */
#site_header .topbarr {
  width: 100% !important;
  max-width: 100% !important;
}

#site_header .topbarr .content {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 60px !important;
  padding-right: 60px !important;
  width: 100% !important;
}

/* Navigation bar full width with side margins matching page content */
#navigation_bar {
  width: 100% !important;
  max-width: 100% !important;
}

#navigation_bar .content {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 60px !important;
  padding-right: 60px !important;
  width: 100% !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive margin and padding adjustments - matching header and content exactly */
@media (max-width: 1400px) {
  /* Hero sections - same margins as header */
  .content_section .content > .full_width {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
  
  .content > .rows_container,
  .content > .internal_post_con,
  .content_section .content > .rows_container,
  .content_section .content > .internal_post_con,
  .content_section > .rows_container {
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
  
  /* All content sections match header width */
  .content_section .content {
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
  
  /* Header - same margins as content */
  #site_header .content,
  #site_header .topbarr .content,
  #navigation_bar .content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
  
  #footer .container,
  #footer .content,
  #footer .rows_container {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 1200px) {
  /* Hero sections - same margins as header */
  .content_section .content > .full_width {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  
  .content > .rows_container,
  .content > .internal_post_con,
  .content_section .content > .rows_container,
  .content_section .content > .internal_post_con,
  .content_section > .rows_container {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  
  /* All content sections match header width */
  .content_section .content {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  
  /* Header - same margins as content */
  #site_header .content,
  #site_header .topbarr .content,
  #navigation_bar .content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  
  #footer .container,
  #footer .content,
  #footer .rows_container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  /* Hero sections - same margins as header */
  .content_section .content > .full_width {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .content > .rows_container,
  .content > .internal_post_con,
  .content_section .content > .rows_container,
  .content_section .content > .internal_post_con,
  .content_section > .rows_container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* All content sections match header width */
  .content_section .content {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Header - same margins as content */
  #site_header .content,
  #site_header .topbarr .content,
  #navigation_bar .content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  #footer .container,
  #footer .content,
  #footer .rows_container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Home Header Responsive Styles */
  .home-header .full_width {
    flex-direction: column;
    text-align: center;
  }
  
  .home-header .full_width > div:first-child {
    margin-bottom: 20px;
  }
  
  .home-header .full_width > div:last-child {
    width: 100%;
  }
  
  .home-header .full_width > div:last-child a {
    width: 100%;
    text-align: center;
  }
  
  .home-header > .content > div:last-child {
    flex-direction: column;
    text-align: center;
  }
  
  .home-header > .content > div:last-child > div:first-child {
    width: 100%;
    justify-content: center;
  }
  
  .home-header > .content > div:last-child > div:last-child {
    width: 100%;
    margin-top: 15px;
  }
  
  .home-header > .content > div:last-child > div:last-child a {
    width: 100%;
    text-align: center;
  }
}

/* Links */
a {
  color: var(--capsi-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--capsi-red-dark);
}

/* Header: Top Bar - Dark Red/Maroon */
#site_header .topbarr,
#site_header .topbar,
#site_header .topbar_colored {
  background: var(--capsi-red) !important;
  color: #fff !important;
  min-height: 40px;
}

#site_header .topbarr a,
#site_header .topbar a,
#site_header .topbar span,
#site_header .topbarr span {
  color: #ffffff !important;
}

#site_header .topbarr i,
#site_header .topbar i {
  color: var(--capsi-gold) !important;
}

/* Navigation Bar - White Background */
#navigation_bar {
  background: var(--capsi-white) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#logo img {
  filter: none;
  max-height: 60px;
}

/* Navigation Menu */
#main_nav #navy > li > a > span {
  color: var(--capsi-text-dark);
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 15px;
  text-transform: none;
}

#navy > li.current_page_item > a > span,
#navy > li:hover > a > span {
  color: var(--capsi-red);
}

/* Active indicator - Orange/Gold */
#navy > li > a:after {
  background: var(--capsi-gold);
  height: 3px;
}

/* Buttons */
.main_button,
.btn_a,
.black_button,
.arrow_button {
  background: var(--capsi-red) !important;
  border-color: var(--capsi-red) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.main_button:hover,
.btn_a:hover,
.black_button:hover,
.arrow_button:hover {
  background: var(--capsi-red-dark) !important;
  border-color: var(--capsi-red-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 35, 35, 0.3);
}

/* Gold/Orange accent buttons */
.btn_c,
.send_button {
  background: var(--capsi-gold) !important;
  color: var(--capsi-text-dark) !important;
}

.btn_c:hover,
.send_button:hover {
  background: var(--capsi-gold-dark) !important;
}

/* Section Headers */
.content_section,
.content_sections {
  padding-top: 50px;
  padding-bottom: 50px;
}

.main_title h2,
h1, h2, h3, h4, h5, h6 {
  color: var(--capsi-text-dark);
  font-weight: 700;
}

.main_title .line i,
.main_title .dot {
  background: var(--capsi-gold) !important;
}

/* Hero Section Styling */
.full_width[style*="background:#003366"] {
  background: var(--capsi-red) !important;
}

.full_width[style*="background:#003366"] h1,
.full_width[style*="background:#003366"] h4 {
  color: #fff !important;
}

.full_width[style*="background:#003366"] p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.full_width[style*="background:#003366"] .main_button {
  background: var(--capsi-gold) !important;
  color: var(--capsi-text-dark) !important;
  border: none !important;
}

.full_width[style*="background:#003366"] .main_button:hover {
  background: var(--capsi-gold-dark) !important;
}

/* Cards/Blocks */
.blog_grid_con,
.table_container,
.panel-body,
.feature_inner_ling,
.comment-box,
.newsletter_con {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  background: var(--capsi-white);
}

/* Footer */
#footer {
  background: var(--capsi-text-dark);
  color: #d7dde5;
  border-top: 4px solid var(--capsi-red);
}

#footer a { 
  color: #ffffff; 
}

#footer a:hover {
  color: var(--capsi-gold);
}

#footer .footer_title { 
  color: #ffffff; 
}

#footer .newsletter_button {
  background: var(--capsi-gold);
  color: var(--capsi-text-dark);
}

/* Forms */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"], 
input[type="date"], 
textarea, 
select {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 10px 12px;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
input[type="number"]:focus, 
input[type="date"]:focus, 
textarea:focus, 
select:focus {
  border-color: var(--capsi-red);
  box-shadow: 0 0 0 3px rgba(139, 35, 35, 0.1);
  outline: none;
}

/* Badges/Accents */
.tagcloud a,
.num_colored,
.enar_occ_title[style*="background-color: #123"] {
  background: var(--capsi-red) !important;
  color: #fff !important;
}

.enar_occ_title[style*="background-color: #123"] {
  background: var(--capsi-red) !important;
  color: #fff !important;
}

/* Tables */
table {
  border-collapse: separate;
  border-spacing: 0;
}

table th {
  background: var(--capsi-off-white);
  color: var(--capsi-text-dark);
  font-weight: 600;
  border-bottom: 2px solid var(--capsi-red);
}

table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Accordion */
.enar_accordion .enar_occ_title {
  background: var(--capsi-red) !important;
  color: #fff !important;
}

.enar_accordion .enar_occ_title:hover {
  background: var(--capsi-red-dark) !important;
}

/* Misc */
.hm_go_top { 
  background: var(--capsi-red) !important; 
}

.hm_go_top:hover { 
  background: var(--capsi-gold) !important; 
  color: var(--capsi-text-dark) !important;
}

/* Selection */
::selection {
  background: var(--capsi-gold);
  color: var(--capsi-text-dark);
}

::-moz-selection {
  background: var(--capsi-gold);
  color: var(--capsi-text-dark);
}

/* Promotional Banner Style (like CAPSI's "Inspire others" banner) */
.capsi-promo-banner {
  background: var(--capsi-red);
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  font-style: italic;
}

.capsi-promo-banner a {
  color: #fff;
  text-decoration: underline;
}

/* Journal Name Styling */
.journal-name {
  color: var(--capsi-red);
  font-weight: 700;
}

/* Mobile Menu Toggle Button - CAPSI Theme Styled */
@media (max-width: 768px) {
  /* Make mobile menu trigger visible on mobile */
  .mobile_menu_trigger {
    display: block !important;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
  }
  
  /* Style the nav trigger button with CAPSI colors */
  .nav_trigger {
    background: var(--capsi-red) !important;
    border: 2px solid var(--capsi-red) !important;
    border-radius: 4px;
    height: 44px !important;
    width: 44px !important;
    position: relative !important;
    right: 0 !important;
    display: block !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 35, 35, 0.3);
    transition: all 0.3s ease;
  }
  
  .nav_trigger:hover {
    background: var(--capsi-red-dark) !important;
    border-color: var(--capsi-red-dark) !important;
    box-shadow: 0 4px 12px rgba(139, 35, 35, 0.4);
  }
  
  /* Style the hamburger lines with gold/white for visibility */
  .nav_trigger span,
  .nav_trigger span:before,
  .nav_trigger span:after {
    background: var(--capsi-gold) !important;
    height: 2px !important;
    width: 22px !important;
  }
  
  .nav_trigger span {
    top: 50% !important;
    right: 11px !important;
    margin-top: -1px;
  }
  
  .nav_trigger span:before {
    top: -7px !important;
  }
  
  .nav_trigger span:after {
    top: 7px !important;
  }
  
  /* Active state - transform to X */
  .nav_trigger.nav-is-visible {
    background: var(--capsi-red-dark) !important;
  }
  
  .nav_trigger.nav-is-visible span {
    background: transparent !important;
  }
  
  .nav_trigger.nav-is-visible span:before {
    background: var(--capsi-gold) !important;
    transform: rotate(45deg) translate(5px, 5px) !important;
  }
  
  .nav_trigger.nav-is-visible span:after {
    background: var(--capsi-gold) !important;
    transform: rotate(-45deg) translate(5px, -5px) !important;
  }
  
  #navigation_bar {
    padding: 10px 0;
    position: relative;
  }
  
  #navigation_bar .content {
    position: relative;
    padding-right: 80px !important; /* Make room for toggle button */
  }
  
  #logo {
    position: relative;
    z-index: 99;
  }
  
  #logo img {
    max-height: 50px;
  }
  
  /* Ensure nav menu is positioned correctly */
  #main_nav {
    position: relative;
  }
  
  #nav_menu {
    position: relative;
  }
  
  /* Article listing responsive */
  .article-title {
    font-size: 18px;
  }
  
  .article-actions {
    gap: 8px;
  }
  
  .action-link {
    font-size: 13px;
    padding: 5px 12px;
  }
}

/* Tablet view adjustments */
@media (max-width: 992px) and (min-width: 769px) {
  .mobile_menu_trigger {
    display: block !important;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
  }
  
  .nav_trigger {
    background: var(--capsi-red) !important;
    border: 2px solid var(--capsi-red) !important;
    border-radius: 4px;
    height: 44px !important;
    width: 44px !important;
    position: relative !important;
    right: 0 !important;
    display: block !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 35, 35, 0.3);
  }
  
  .nav_trigger span,
  .nav_trigger span:before,
  .nav_trigger span:after {
    background: var(--capsi-gold) !important;
    height: 2px !important;
    width: 22px !important;
  }
  
  .nav_trigger span {
    top: 50% !important;
    right: 11px !important;
    margin-top: -1px;
  }
  
  #navigation_bar .content {
    padding-right: 80px !important;
  }
  
  /* Article listing responsive */
  .article-title {
    font-size: 18px;
  }
  
  .article-actions {
    gap: 8px;
  }
  
  .action-link {
    font-size: 13px;
    padding: 5px 12px;
  }
}

/* Journal Article Listing Style - Matching journals.co.za */
.issues-section {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.section-header {
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 3px solid #8B2323;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: #FFB81C;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 10px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 18px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
  font-style: italic;
}

.journal-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.journal-article-item {
  padding: 28px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0;
  transition: background-color 0.2s ease;
}

.journal-article-item:hover {
  background-color: #f9fafb;
  margin: 0 -15px;
  padding: 28px 15px;
  border-radius: 8px;
}

.journal-article-item:last-child {
  border-bottom: none;
}

.article-title {
  margin: 0 0 14px 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  color: #1f2937;
  letter-spacing: -0.3px;
}

.article-title a {
  color: #8B2323;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title a:hover {
  color: #6B1A1A;
  text-decoration: underline;
}

.article-authors {
  margin: 8px 0;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
}

.article-authors p {
  margin: 0;
  padding: 0;
  display: inline;
}

.article-authors sup {
  font-size: 0.75em;
  color: #8B2323;
  font-weight: 600;
  vertical-align: super;
  margin-left: 2px;
}

.article-authors a {
  color: #8B2323;
  text-decoration: none;
  font-weight: 500;
}

.article-authors a:hover {
  text-decoration: underline;
}

.author-name {
  color: #374151;
  font-weight: 500;
}

.article-meta {
  margin: 8px 0;
  font-size: 14px;
  color: #6b7280;
}

.article-date {
  color: #6b7280;
}

.article-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.action-link {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.action-link:hover {
  background: #8B2323;
  border-color: #8B2323;
  color: #fff;
  text-decoration: none;
}

.action-link:active {
  background: #6B1A1A;
  border-color: #6B1A1A;
}

/* Previous Issues – grid of issue cards */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 992px) {
  .issues-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.issue-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 35, 35, 0.15);
  color: inherit;
  text-decoration: none;
}

.issue-card-cover {
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #8B2323 0%, #6B1A1A 50%, #1b2430 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.issue-card-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 6L6 30l24 24 24-24L30 6z' fill='%23fff' fill-opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.issue-card-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.issue-card-cover-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.5));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.issue-card-cover-text {
  font-size: 42px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.issue-card-body {
  padding: 20px;
}

.issue-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.issue-card-meta {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* Article View Page Styles - Journal Style */
.article-header-section {
  background: #fff;
  padding: 30px 40px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #8B2323;
}

.article-main-title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 20px 0;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.article-authors-header {
  font-size: 18px;
  color: #374151;
  margin-bottom: 15px;
  line-height: 1.8;
}

.article-authors-header p {
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

.article-authors-header sup {
  font-size: 0.7em;
  color: #8B2323;
  font-weight: 600;
  vertical-align: super;
  margin-left: 2px;
}

.author-link {
  color: #8B2323;
  font-weight: 500;
  text-decoration: none;
}

.author-link:hover {
  text-decoration: underline;
}

/* Author name styling when HTML is present */
.article-authors-header a {
  color: #8B2323;
  text-decoration: none;
  font-weight: 500;
}

.article-authors-header a:hover {
  text-decoration: underline;
}

.article-meta-header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #6b7280;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item i {
  color: #8B2323;
}

.article-stats-header {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.stat-badge i {
  color: #8B2323;
}

.article-layout-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
  max-height: calc(100vh - 250px);
  min-height: 600px;
}

/* Article Tools Sidebar */
.article-tools-sidebar {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
}

.tools-section {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.tools-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #8B2323;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  background: #8B2323;
  border-color: #8B2323;
  color: #fff;
  text-decoration: none;
}

.tool-btn i {
  font-size: 16px;
}

.tool-btn.disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.tool-btn.disabled:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #9ca3af;
}

.section-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-link {
  display: block;
  padding: 10px 15px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.section-link:hover {
  background: #f3f4f6;
  color: #8B2323;
  text-decoration: none;
  padding-left: 20px;
}

/* Main Article Content */
.article-main-content {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  overflow-y: auto;
  max-height: calc(100vh - 250px);
  height: 100%;
  position: sticky;
  top: 20px;
}

.article-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e5e7eb;
}

.article-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section-heading {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #8B2323;
  position: relative;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #FFB81C;
}

.section-content {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

/* Keywords Styling */
.keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.keyword-tag {
  display: inline-block;
  padding: 6px 14px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.keyword-tag:hover {
  background: #8B2323;
  border-color: #8B2323;
  color: #fff;
}

/* Full Text Content */
.full-text-content {
  text-align: justify;
}

.section-placeholder {
  color: #9ca3af;
  font-style: italic;
  padding: 20px;
  text-align: center;
  background: #f9fafb;
  border-radius: 6px;
}

.references-content {
  font-size: 15px;
  line-height: 1.8;
}

/* Responsive Layout */
@media (max-width: 992px) {
  .article-layout-container {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: auto;
  }
  
  .article-tools-sidebar {
    position: static;
    order: 2;
  }
  
  .article-main-content {
    order: 1;
    max-height: none;
    height: auto;
    position: static;
    overflow-y: visible;
  }
  
  .tools-section {
    margin-bottom: 15px;
  }
  
  .tools-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .tool-btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .article-header-section {
    padding: 20px;
  }
  
  .article-main-title {
    font-size: 24px;
  }
  
  .article-main-content {
    padding: 25px 20px;
  }
  
  .section-heading {
    font-size: 20px;
  }
  
  .tools-list {
    flex-direction: column;
  }
  
  .tool-btn {
    width: 100%;
  }
}

/* Right Sidebar Styling - Journal Style */
#sidebar.right_sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}

#sidebar .widget_block {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

#sidebar .widget_block:last-child {
  margin-bottom: 0;
}

/* Search Block */
#sidebar .search_block {
  margin-bottom: 0;
}

#sidebar .widget_search {
  position: relative;
  margin-bottom: 15px;
}

#sidebar .serch_input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

#sidebar .serch_input:focus {
  outline: none;
  border-color: #8B2323;
  box-shadow: 0 0 0 3px rgba(139, 35, 35, 0.1);
}

#sidebar .search_btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #8B2323;
  color: #fff;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sidebar .search_btn:hover {
  background: #6B1A1A;
  transform: translateY(-50%) scale(1.05);
}

#sidebar .search_btn i {
  color: #fff;
  font-size: 16px;
}

#sidebar .search_block a[href*="advance-search"] {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #8B2323;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

#sidebar .search_block a[href*="advance-search"]:hover {
  color: #6B1A1A;
  text-decoration: underline;
}

/* Widget Blocks Content */
#sidebar .widget_block h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #8B2323;
}

#sidebar .list3 {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar .list3 > li {
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

#sidebar .list3 > li:last-child {
  border-bottom: none;
}

#sidebar .list3 a {
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 6px 0;
  transition: all 0.2s ease;
}

#sidebar .list3 a:hover {
  color: #8B2323;
  padding-left: 8px;
  text-decoration: none;
}

/* Accordion Styling */
#sidebar .enar_accordion {
  margin: 0;
}

#sidebar .enar_occ_container {
  margin-bottom: 0;
  border: none;
}

#sidebar .enar_occ_title {
  background: #8B2323 !important;
  color: #fff !important;
  padding: 12px 15px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
  transition: all 0.2s ease;
}

#sidebar .enar_occ_title:hover {
  background: #6B1A1A !important;
}

#sidebar .enar_occ_content {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 15px;
}

#sidebar .enar_occ_content .acc_content {
  padding: 0;
}

#sidebar .enar_occ_content .cat_list_widget {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar .enar_occ_content .cat_list_widget h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

#sidebar .enar_occ_content .cat_list_widget p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

#sidebar .enar_occ_content .cat_list_widget a {
  color: #8B2323;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.2s ease;
}

#sidebar .enar_occ_content .cat_list_widget a:hover {
  color: #6B1A1A;
  text-decoration: underline;
}

#sidebar .enar_occ_content .cat_list_widget li {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

#sidebar .enar_occ_content .cat_list_widget li:last-child {
  border-bottom: none;
}

#sidebar .enar_occ_content .cat_list_widget li a {
  font-size: 14px;
  font-weight: 400;
}

/* Text Justify */
#sidebar .text-justify {
  text-align: left;
}

/* Author Display Styling for Previous Issues Page */
.article-author-display {
  margin: 0;
  padding: 0;
  display: inline-block;
  vertical-align: top;
}

.article-author-display p {
  margin: 0;
  padding: 0;
  display: inline;
}

.article-author-display sup {
  font-size: 0.75em;
  color: #8B2323;
  font-weight: 600;
  vertical-align: super;
  margin-left: 2px;
}

.article-author-display a {
  color: #8B2323;
  text-decoration: none;
  font-weight: 500;
}

.article-author-display a:hover {
  text-decoration: underline;
}

/* Reduce spacing between page header and content */
.home-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.home-header + .rows_container,
.home-header ~ .rows_container,
.home-header + .content > .rows_container,
section.home-header + section .rows_container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Reduce margin-bottom on header full_width */
.home-header .full_width {
  margin-bottom: 10px !important;
}

/* Responsive Sidebar */
@media (max-width: 992px) {
  #sidebar.right_sidebar {
    position: static;
    margin-top: 30px;
  }
  
  #sidebar .widget_block {
    margin-bottom: 20px;
  }
}
