/* Modern Elegant OJS Theme with Scrollable Navbar */

/* Root Variables */
:root {
  --primary-color: #2c3e50;      /* Dark blue-gray */
  --secondary-color: #3498db;    /* Bright blue */
  --accent-color: #e74c3c;       /* Coral red */
  --text-color: #34495e;         /* Dark gray-blue */
  --background-light: #ecf0f1;   /* Light gray */
  --background-dark: #2c3e50;    /* Dark blue-gray */
  --white: #ffffff;              /* Pure white */
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* General Reset */
body {
  font-family: 'Lato', sans-serif;
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--white);
  margin: 0;
  padding-top: 0; /* No padding needed since navbar is not fixed */
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

/* Navbar Wrapper */
.pkp_head_wrapper {
  background: var(--white);
  box-shadow: var(--shadow);
  width: 100%;
  padding: 10px 0; /* No horizontal padding to allow full-width logo */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Styling */
.pkp_site_name .is_img {
  width: 100%; /* Ensure logo container takes full width */
  text-align: center; /* Center the logo */
}

.pkp_site_name .is_img img {
  width: 100%; /* Make the logo span the full width */
  max-width: 2500px; /* Maximum width of the logo */
  height: auto; /* Maintain aspect ratio */
  max-height: 100px; /* Adjusted height for better spacing */
  transition: transform 0.3s ease;
}

.pkp_site_name .is_img img:hover {
  transform: scale(1.02); /* Subtle hover effect */
}

/* Navigation Menu */
.pkp_navigation_primary_wrapper {
  background: var(--white);
  padding: 10px 20px; /* Add padding to navigation */
}

.pkp_navigation_primary {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pkp_navigation_primary > li {
  margin-left: 20px;
}

.pkp_navigation_primary > li > a {
  color: var(--text-color);
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pkp_navigation_primary > li > a:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* Login/Register Buttons */
.pkp_navigation_user {
  display: flex;
  align-items: center;
  margin-left: auto; /* Push buttons to the right */
}

.pkp_navigation_user a {
  color: var(--white) !important; /* Force white text */
  background: var(--secondary-color);
  padding: 8px 16px;
  border-radius: 4px;
  margin-left: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pkp_navigation_user a:hover {
  background: var(--accent-color);
  color: var(--white) !important;
}

/* Dropdown Menus */
.pkp_navigation_primary > li > ul {
  background: var(--white);
  border: 1px solid var(--background-light);
  border-radius: 4px;
  box-shadow: var(--shadow);
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 200px;
}

.pkp_navigation_primary > li:hover > ul {
  display: block;
}

.pkp_navigation_primary > li > ul > li > a {
  color: var(--text-color);
  padding: 10px 15px;
  display: block;
  transition: all 0.3s ease;
}

.pkp_navigation_primary > li > ul > li > a:hover {
  background: var(--background-light);
  color: var(--secondary-color);
}

/* Main Content */
.pkp_structure_main {
  background: var(--white);
  padding: 40px 20px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: var(--shadow);
  border-radius: 8px;
}

/* Article Styling */
.obj_article_summary {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--background-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.obj_article_summary:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.obj_article_summary .title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.obj_article_summary .authors {
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Buttons */
.pkp_button {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pkp_button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Footer */
.pkp_structure_footer_wrapper {
  background: var(--background-dark);
  color: var(--white);
  padding: 40px 20px;
  margin-top: 40px;
}

.pkp_structure_footer {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.pkp_structure_footer a {
  color: var(--white);
  text-decoration: underline;
}

.pkp_structure_footer a:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 2500px) {
  .pkp_site_name .is_img img {
    max-width: 100%; /* Ensure logo scales down on smaller screens */
    height: auto; /* Maintain aspect ratio */
  }
}

@media (max-width: 768px) {
  .pkp_navigation_primary {
    flex-direction: column;
    align-items: flex-start;
  }

  .pkp_navigation_primary > li {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .pkp_site_name .is_img img {
    max-height: 80px; /* Smaller height for mobile */
  }

  .pkp_structure_main {
    padding: 20px 10px;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.75rem;
  font-weight: 500;
}

/* Sidebar Styles */
.journal-sidebar {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sidebar-section {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

.sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-title {
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
  position: relative;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #e74c3c;
}

.sidebar-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.sidebar-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: #3498db !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  color: #e74c3c !important;
  transform: translateX(5px);
}

.scope-list {
  list-style: none;
  padding-left: 1.2rem;
}

.scope-list li {
  position: relative;
  margin-bottom: 0.5rem;
}

.scope-list li::before {
  content: '▹';
  color: #3498db;
  position: absolute;
  left: -1.2rem;
}

.policy-details {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.detail-label {
  color: #666;
  font-size: 0.9rem;
}

.detail-value {
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .journal-sidebar {
    margin: 1.5rem 0;
    border-radius: 8px;
  }

  .sidebar-section {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
  }

  .sidebar-title {
    font-size: 1rem;
  }

  .sidebar-content {
    font-size: 0.9rem;
  }

  .scope-list {
    padding-left: 1rem;
  }

  .policy-details {
    padding: 0.8rem;
  }

  .detail-label {
    font-size: 0.85rem;
  }

  .detail-value {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .journal-sidebar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .sidebar-title::after {
    width: 30px;
  }
}
/* Accessibility */
:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.pkp_page_index .homepage_image img {
    display: block;
    width: 96%;
    height: auto;
    margin-left: 18px;
}

/* Ensure styles do not affect other elements in OJS */
.ojs-editorial-board {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.ojs-title {
    text-align: center;
    color: #004080;
    border-bottom: 3px solid #004080;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.ojs-heading {
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 5px;
    margin-top: 20px;
}

.ojs-member, .ojs-list-item {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.ojs-section {
    margin-bottom: 20px;
}

.ojs-list {
    list-style-type: none;
    padding: 0;
}

.ojs-list-item {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.ojs-list-item:last-child {
    border-bottom: none;
}


/* Ensure styles do not affect other OJS styles */
.rafe-container {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.rafe-title {
    text-align: center;
    color: #004080;
    border-bottom: 3px solid #004080;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.rafe-heading {
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 5px;
    margin-top: 20px;
    font-size: 20px;
}

.rafe-subheading {
    color: #00509E;
    font-size: 18px;
    margin-top: 15px;
    font-weight: bold;
}

.rafe-text {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.rafe-intro {
    font-size: 17px;
    color: #222;
    font-weight: 500;
    margin-bottom: 20px;
}

.rafe-list {
    list-style-type: square;
    margin-left: 20px;
    font-size: 16px;
}

.rafe-list-item {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.rafe-list-item:last-child {
    border-bottom: none;
}

strong {
    color: #004080;
}

.pkp_site_nav_toggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 2.857rem;
    height: 2.857rem;
    border: 0;
    background: green;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.2), -1px 0 0 rgba(255, 255, 255, 0.2);
    z-index: 999;
}

@media (max-width: 768px) {
    .pkp_site_name .is_img img {
        max-height: 71px;
    }
}

.pkp_navigation_primary > li > a {
    color: var(--text-color);
    font-weight: 600;
    padding: 9px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}