/* ===================================================================
   Custom Stylesheet for OJS
   by Sid Ahmed KHETTAB
   =================================================================== */

/* --- Root Variables & Global Styles --- */
:root {
  --card-radius: 16px;
  --card-shadow: 0 8px 24px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
}

/* Ensure overlay never blocks clicks */
.homepage-image::after {
  pointer-events: none;
}

/* Unified link styles for major components */
.journal-description a,
.current_issue a,
#sidebar .pkp_block .content a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, .3);
  transition: color .2s ease, border-color .2s ease;
}

.journal-description a:hover,
.current_issue a:hover,
#sidebar .pkp_block .content a:hover {
  color: #174c80;
  border-color: rgba(37, 99, 235, .6);
}

/* Accessibility: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .homepage-image,
  .journal-description,
  .current_issue,
  #sidebar .pkp_block,
  .thumbnail,
  a,
  button {
    transition: none !important;
  }

  .homepage-image:hover,
  .journal-description:hover,
  .thumbnail:hover {
    transform: none;
  }
}

/* ===================================================================
   Layout
   =================================================================== */

/* --- Modern Desktop Header (CENTERED) --- */
@media (min-width: 992px) {
  /* Main container for the centered header elements */
  #headerNavigationContainer .container-fluid:has(> .navbar-header) {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    /* Stack logo and nav vertically */
    flex-direction: column;
    /* Center flex items (logo and nav) horizontally */
    align-items: center;
    /* Adds 10px spacing between logo and nav blocks */
    gap: 10px;
  }

  /* Styles the logo's immediate parent wrapper */
  #headerNavigationContainer .navbar-header {
    display: flex;
    align-items: center;
    /* Center the logo horizontally within its wrapper */
    justify-content: center;
    width: 100%;
  }

  /* Styles the logo's <a> tag */
  #headerNavigationContainer .navbar-brand {
    /* Apply vertical padding to the logo link */
    padding: 20px 0 10px;
    display: flex;
    align-items: center;
    /* Allow logo height to be flexible, overriding fixed heights */
    height: auto;
  }

  /* Hides the text site name if an image logo is used */
  #headerNavigationContainer .site-name {
    margin: 0;
    line-height: 0;
  }

  /* Logo Image Styling */
  #headerNavigationContainer .navbar-brand-logo img {
    /* Set max-height for the logo image */
    max-height: 120px;
    height: auto;
    width: auto;
    display: block;
  }

  /* Nav Menu Container */
  #headerNavigationContainer .navbar-collapse {
    /* Use flex to control nav items, !important overrides OJS default */
    display: flex !important;
    align-items: center;
    /* Center navigation links horizontally */
    justify-content: center;
    /* Allow nav items to wrap to the next line if needed */
    flex-wrap: wrap;
    width: 100%;
  }

  /* Individual Menu Links */
  #headerNavigationContainer .nav > li > a {
    padding: 12px 18px;
    line-height: 1.4;
  }

  /* Change the background of the navbar */
  .navbar {
    background: linear-gradient(to right, #2c3e50, #1f2c3a);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
}

/* --- Sidebar --- */
#sidebar {
  max-width: 380px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  text-align: center;
}

#sidebar .pkp_block {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, .06);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  padding: 0 0 18px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#sidebar .pkp_block:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
  border-color: rgba(2, 6, 23, .12);
}

#sidebar .pkp_block .title {
  display: block;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to right, #2c3e50, #1f2c3a);
  text-align: left;
  padding: 10px 16px;
  font-size: 15px;
  letter-spacing: .25px;
  line-height: 1.25;
}

#sidebar .pkp_block .content {
  font-size: 13px;
  line-height: 1.7;
  color: #1f2937;
  padding: 16px 18px;
}

#sidebar .pkp_block .content ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

#sidebar .pkp_block .content li {
  margin: 6px 0;
}

#sidebar .pkp_block .content li+li {
  border-top: 1px solid rgba(2, 6, 23, .06);
  padding-top: 6px;
}

#sidebar .pkp_block button,
#sidebar .pkp_block .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  background: #0ea5e9;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 6px 14px rgba(14, 165, 233, .3);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

#sidebar .pkp_block button:hover,
#sidebar .pkp_block .btn:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(14, 165, 233, .4);
}

#sidebar .pkp_block img {
  display: block;
  max-width: 85%;
  height: auto;
  border-radius: 10px;
  margin: 10px auto;
}

#sidebar #wordcloud {
  background: #f8fafc;
  border: 1px solid rgba(2, 6, 23, .06);
  border-radius: 12px;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
  display: flex;
  justify-content: center;
}

#sidebar .block_web_feed .content ul {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding-left: 0;
}

#sidebar .block_web_feed img {
  width: 28px;
  height: 28px;
  filter: grayscale(30%);
  transition: transform .15s ease, filter .15s ease;
}

#sidebar .block_web_feed a:hover img {
  transform: translateY(-1px) scale(1.05);
  filter: none;
}

@media (max-width: 768px) {
  #sidebar {
    gap: 14px;
  }

  #sidebar .pkp_block {
    padding-bottom: 16px;
  }
}

/* --- Footer --- */
footer.footer {
  background: #222222;
  color: #f5f5f5;
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}

footer.footer a {
  color: #38bdf8;
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, .3);
  transition: color .2s ease, border-color .2s ease;
}

footer.footer a:hover {
  color: #0ea5e9;
  border-color: rgba(56, 189, 248, .6);
}

footer.footer strong {
  color: #ffffff;
  font-weight: 600;
}

footer.footer em {
  color: #cbd5e1;
}

footer.footer img {
  display: inline-block;
  vertical-align: middle;
  height: 22px;
  margin-left: 4px;
  filter: none !important;
  background: none !important;
}

footer.footer .container-fluid {
  max-width: 1000px;
  margin: 0 auto;
}

footer.footer p {
  margin: 8px 0;
}

footer.footer .row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  footer.footer {
    font-size: 12px;
    padding: 25px 15px;
  }
}

/* ===================================================================
   Components
   =================================================================== */

/* --- Card: Homepage Image --- */
.homepage-image {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 15px;
  overflow: hidden;
  background: #fff;
  border-radius: var(--card-radius);
  /* This card has a unique, stronger shadow */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.homepage-image:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15), 0 6px 14px rgba(0, 0, 0, 0.12);
}

.homepage-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.96);
}

.homepage-image:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.homepage-image::after {
  content: "";
  position: absolute;
  inset: 15px;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.homepage-image:hover::after {
  opacity: 0.2;
}

/* --- Card: Journal Description --- */
.journal-description {
  position: relative;
  max-width: 1100px;
  margin: 50px auto;
  background: #ffffff;
  padding: 50px 60px;
  line-height: 1.9;
  color: #1c1c1c;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journal-description:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 6px 14px rgba(0, 0, 0, 0.1);
}

.journal-description p {
  margin-bottom: 1.2em;
  text-align: justify;
}

.journal-description strong {
  color: #174c80;
}

.journal-description u {
  text-decoration-thickness: 2px;
}

.journal-description::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 109, 176, 0.04), rgba(42, 109, 176, 0.02));
  border-radius: 16px;
  z-index: 0;
}

.journal-description * {
  position: relative;
  z-index: 1;
}

/* --- Section: Current Issue --- */
/* This is a wrapper for positioning and styling sub-elements */
.current_issue {
  max-width: 1100px;
  margin: 60px auto 0;
  /* Card styles removed from here and placed on .issue-toc .heading.row */
}

.current_issue .page-header {
  margin: 0 0 12px;
  border: 0;
}

.current_issue .page-header h2, .cmp_announcements .page-header h2 {
  font-size: 32px;
  color: #0f172a;
  margin-bottom: 10px;
  border-left: 4px solid #0ea5e9;
  padding-left: 10px;
  letter-spacing: 0.5px;
}

.current_issue .current_issue_title.lead {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
  border-left: 4px solid #0ea5e9;
  padding: 12px 18px;
  border-radius: 10px;
  margin: 20px 0 35px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.current_issue .issue-toc::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(to right, rgba(14, 165, 233, 0.3), rgba(14, 165, 233, 0));
  margin: 30px 0 10px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .current_issue .page-header h2 {
    font-size: 26px;
  }

  .current_issue .current_issue_title.lead {
    font-size: 16px;
    padding: 10px 14px;
  }
}

/* --- Card: Issue TOC Header --- */
/* This card holds the issue cover and publication details */
.issue-toc .heading.row {
  max-width: 1100px;
  margin: 20px auto 60px;
  background: #ffffff;
  padding: 50px 60px;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  margin-left: auto;
  margin-right: auto;
}

.issue-toc .thumbnail {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  max-width: 300px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: auto;
  padding: 0;
  flex-basis: 300px;
  flex-shrink: 0;
}

.issue-toc .thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.issue-toc .thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.issue-toc .issue-details {
  flex: 1;
  width: auto;
  padding: 0;
}

.issue-toc .published {
  font-size: 15px;
  color: #475569;
  margin-top: 8px;
}

.issue-toc .published strong {
  color: #0f172a;
}

@media (max-width: 768px) {
  .issue-toc .heading.row {
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .issue-toc .thumbnail {
    max-width: 100%;
    flex-basis: 100%;
  }
}

/* --- Button: "View All Issues" --- */
.current_issue .btn.btn-primary.read-more {
  background-image: none !important;
  text-shadow: none !important;
  border: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0ea5e9;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
  margin-top: 30px;
}

.current_issue .btn.btn-primary.read-more:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(14, 165, 233, 0.35);
}

.current_issue .read-more .glyphicon {
  display: none;
}

.current_issue .read-more::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23FFFFFF'%3E%3Cpath fill-rule='evenodd' d='M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E");
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 4px;
}

/* --- Header: Section ("Articles") --- */
.current_issue .sections .section .page-header h2 {
  color: #0f172a;
  border-left: 4px solid #0ea5e9;
  padding-left: 10px;
  letter-spacing: 0.5px;
  font-size: 24px;
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 40px;
  margin-bottom: 30px;
}

/* OJS puts "Articles" in a <small> tag, so this makes it inherit the h2 style */
.current_issue .sections .section .page-header h2 small {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* --- Card: Article Summary --- */
.article-summary.media {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  overflow: hidden;
}

.article-summary.media:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
  border-color: #d1d5db;
}

.article-summary .media-heading {
  margin-bottom: 8px;
}

.article-summary .media-heading a {
  color: #0f172a;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.article-summary:hover .media-heading a {
  color: #0ea5e9;
}

.article-summary .media-heading p small {
  font-size: 15px;
  color: #64748b;
  font-weight: 400;
  margin-top: 5px;
  display: block;
  line-height: 1.5;
}

/* --- REORGANIZED META (HTML-Aware Fix) --- */
/* Target the author's CONTAINER box */
.article-summary .meta {
  display: inline-block !important; /* Force it to inline */
  vertical-align: middle;
  margin-top: 15px;
  /* Add the | separator after the author box */
  position: relative;
  padding-right: 14px; /* Space for the separator */
  margin-right: 10px; /* Space *after* the separator */
}

.article-summary .meta::after {
  content: '|';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1; /* Light grey for the separator */
  font-weight: 400;
}

/* Style the author text itself (inside the .meta box) */
.article-summary .authors {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin-top: 0; 
}

/* Hide empty author boxes */
.article-summary .meta:empty {
  display: none;
}
.article-summary .meta:empty::after {
  display: none;
}

/* Target the page number's CONTAINER box */
.article-summary .pages {
  display: inline-block !important; /* Force it to inline */
  vertical-align: middle;
  
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 15px; /* Match the .meta margin */
  margin-left: 0; /* Spacing is handled by .meta::after */
}

.article-summary .btn-group {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-summary .galley-link.btn.pdf {
  background-image: none !important;
  text-shadow: none !important;
  border: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ef4444;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.article-summary .galley-link.btn.pdf:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(239, 68, 68, 0.35);
}

.article-summary .galley-link.btn.pdf::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23FFFFFF'%3E%3Cpath fill-rule='evenodd' d='M6 2a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V7.414A2 2 0 0015.414 6L12 2.586A2 2 0 0010.586 2H6zm4 10a1 1 0 10-2 0v1.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 13.586V12a1 1 0 10-2 0v.001z' clip-rule='evenodd' /%3E%3C/svg%3E");
  display: inline-block;
  width: 18px;
  height: 18px;
}

/* --- Card: Issue Archive --- */
.issues.media-list .issue-summary.media {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.issues.media-list .issue-summary.media:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
  border-color: #d1d5db;
}

.issues.media-list .issue-summary .media-left {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.issues.media-list .issue-summary .media-left .cover img.media-object {
  display: block;
  width: 150px;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.issues.media-list .issue-summary:hover .media-left .cover img.media-object {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.issues.media-list .issue-summary .media-body {
  flex: 1;
}

.issues.media-list .issue-summary .media-heading {
  margin-bottom: 8px;
}

.issues.media-list .issue-summary .media-heading a.title {
  color: #0f172a;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.issues.media-list .issue-summary:hover .media-heading a.title {
  color: #0ea5e9;
}

.issues.media-list .issue-summary .series.lead {
  font-size: 15px;
  color: #64748b;
  font-weight: 400;
  margin-top: 5px;
  display: block;
  line-height: 1.5;
}

.issues.media-list .issue-summary .description:empty {
  display: none;
}

@media (max-width: 768px) {
  .issues.media-list .issue-summary.media {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .issues.media-list .issue-summary .media-left .cover img.media-object {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .issues.media-list .issue-summary .media-heading a.title {
    font-size: 18px;
  }
}

/* --- Grid: Contact Page --- */
.contact_section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 60px auto;
}

.contact_section .address {
  grid-column: 1 / -1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
}

.contact_section .contact {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact_section .contact:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
  border-color: #d1d5db;
}

.contact_section .contact h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  padding-bottom: 10px;
  margin-bottom: 5px;
  border-bottom: 1px solid #e2e8f0;
}

.contact_section .name {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.contact_section .title,
.contact_section .affiliation {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-top: -8px;
}

.contact_section .affiliation {
  margin-top: -4px;
}

.contact_section .email,
.contact_section .phone {
  font-size: 14px;
  margin-top: 5px;
}

.contact_section .email a,
.contact_section .phone .value {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.contact_section .email a:hover {
  color: #174c80;
  border-bottom-color: #174c80;
}

.contact_section .phone .label {
  display: none;
}

@media (max-width: 992px) {
  .contact_section {
    grid-template-columns: 1fr;
  }
}

/* === Passerelle Announcements â€” White Modern Cards === */

.announcements {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* Base card style */
.announcement-summary {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 22px 24px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}
.announcement-summary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(0,0,0,0.1);
}

/* Title */
.announcement-summary .media-heading {
  margin-bottom: 8px;
}
.announcement-summary .media-heading a {
  color: #0f766e;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}
.announcement-summary .media-heading a:hover {
  color: #0b5e57;
}

/* Date */
.announcement-summary .date {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}
.announcement-summary .date .glyphicon-calendar {
  color: #10b981;
  margin-right: 8px;
}

/* Description */
.announcement-summary p {
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

/* Responsive tweak */
@media (max-width: 600px) {
  .announcements {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .announcement-summary {
    padding: 18px;
  }
}

/* Center the Menu */

/* Keep top-level links white and remove dark hover block */
#main-navigation > li > a {
  color: #fff !important;
  background: transparent !important;
}
#main-navigation > li > a:hover,
#main-navigation > li.open > a,
#main-navigation > li > a:focus {
  color: #fff !important;
  background: transparent !important; /* no dark rectangle on hover */
  text-decoration: underline; /* optional */
}

/* Dropdown: white panel, dark text (so it's readable) */
#main-navigation .dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  margin-top: 10px;
  min-width: 220px;
  padding: 8px 0;
}

/* Dropdown items: readable by default */
#main-navigation .dropdown-menu > li > a {
  color: #1f2937 !important;        /* dark gray text */
  background: transparent !important;
  padding: 10px 14px;
  white-space: normal;               /* allow long French labels to wrap */
  line-height: 1.3;
}

/* Dropdown hover/active: subtle gray, green accent optional */
#main-navigation .dropdown-menu > li > a:hover,
#main-navigation .dropdown-menu > li > a:focus {
  background: #f3f4f6 !important;    /* light gray hover */
  color: #0f766e !important;         /* accent text on hover */
}

/* Ensure dropdown is above other content */
#main-navigation .dropdown-menu { z-index: 1000; }

/* Keep menu centered (from earlier) */
#nav-menu { display: flex; justify-content: center; }
#main-navigation { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/*
  Custom list stylesheet
  Targets <ul> elements within the main .page content wrapper
  to ensure consistent styling across static pages.
*/
div.page ul > li {
  list-style: none !important;
  position: relative !important;
  padding-left: 1.4em !important; /* Provides space for the custom bullet */
  margin-bottom: 0.75em !important; /* Vertical spacing between list items */
}

div.page ul > li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.6em !important; /* Adjust vertical alignment as needed */
  width: 0.55em !important;
  height: 0.55em !important;
  background-color: #00755d !important;
  border-radius: 50% !important;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15) !important;
}

/* Custom numbered style */
ol > li.show {
  list-style: none !important;
  position: relative !important;
  padding-left: 1.8em !important;
  counter-increment: section !important;
}

/* Modern circular number marker */
ol > li.show::before {
  content: counter(section) !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.25em !important;
  width: 1.2em !important;
  height: 1.2em !important;
  background-color: #00755d !important;
  color: #fff !important;
  font-size: 0.85em !important;
  font-weight: bold !important;
  line-height: 1.2em !important;
  text-align: center !important;
  border-radius: 50% !important;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15) !important;
}

/* 

Author Guidelines Section

 */

 /* Button Styles */
 .template-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  margin-bottom: 25px;
 }

 .template-btn {
  display: inline-block;
  padding: 12px 20px;
  /* Gradient background */
  background: linear-gradient(90deg, #00755d, #00a88f);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 }

 .template-btn:hover {
  background: linear-gradient(90deg, #005a47, #008a73); /* Darker gradient on hover */
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
 }

 .template-btn .icon {
  margin-right: 8px;
  font-size: 1.1em;
  vertical-align: middle;
 }

 /* Big Submit Button */
 .submit-btn-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 10px;
 }

 .submit-btn {
  background: linear-gradient(90deg, #b22222, #d9534f); /* Red/CTA color */
  font-size: 1.1em !important;
  padding: 14px 22px !important;
 }
 .submit-btn:hover {
  background: linear-gradient(90deg, #8b1b1b, #c9302c);
 }

 /* Article Type Specification Box */
 .article-spec-box {
  border: 1px solid #ddd;
  border-left: 5px solid #00755d; /* Accent bar to match button */
  padding: 15px 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
 }

 .article-spec-box h5 {
  margin-top: 0;
  font-size: 1.2em;
  color: #005a47; /* Darker theme color */
 }

 .article-spec-box ul {
  list-style-type: 'â€º ';
  padding-left: 20px;
  margin-bottom: 0;
 }

 /* Mandatory Declaration Box */
 .declaration-box {
  border: 1px solid #ddd;
  border-left: 5px solid #c9302c; /* Red accent for "mandatory" */
  padding: 15px 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  background-color: #fdfdfd;
  border-radius: 5px;
 }
 .declaration-box h5 {
  margin-top: 0;
  font-size: 1.2em;
  color: #a94442; /* Darker red */
 }
 .declaration-box pre {
  background-color: #f5f5f5;
  border: 1px dashed #ccc;
  padding: 10px;
  border-radius: 4px;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: monospace, monospace;
  font-size: 0.95em;
 }

 /* Utility Styles */
 .read-more-link {
  text-decoration: none;
  color: #0056b3;
  font-weight: 600;
 }
 .read-more-link:hover {
  text-decoration: underline;
 }

 .section-divider {
  border: 0;
  border-top: 2px solid #eee;
  margin: 40px 0;
 }

/* 
  Styling for the How to
  Submit an Article on ASJP
*/

/* Reset for OJS integration */
.passerelle-guide * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
}

img {
  max-width: 100%;
}

.passerelle-guide {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.passerelle-guide h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50; /* Dark blue-grey */
  text-align: center;
  margin-bottom: 2.5rem;
}

.passerelle-guide p.guide-intro {
  font-size: 1.7rem;
  color: #34495e; /* Lighter blue-grey */
  text-align: center;
  margin-bottom: 3.5rem;
}

/* The main timeline container */
.guide-timeline {
  position: relative;
  width: 100%;
}

/* The vertical line running down the middle (desktop) or left (mobile) */
.guide-timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background-color: #e0e0e0; /* Light grey */
  border-radius: 2px;
}

/* A single step in the guide */
.guide-step {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 70px; /* Space for the number */
}

/* The step number circle */
.guide-step::before {
  content: attr(data-step); /* Use the 'data-step' attribute for the number */
  position: absolute;
  left: 0;
  top: -5px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #3498db; /* Bright blue */
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Step Title */
.guide-step h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #3498db; /* Bright blue */
  margin-bottom: 0.75rem;
  padding-top: 5px; /* Align with number */
}

/* Step main description */
.guide-step > p {
  font-size: 1.7rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

/* The sub-list for details */
.step-details {
  list-style: none; /* Remove default bullets */
  padding-left: 1rem;
}

.step-details li {
  position: relative;
  padding-left: 30px; /* Space for custom icon */
  font-size: 1.7rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0.75rem;
}

/* Custom bullet for sub-lists */
.step-details li::before {
  content: "âœ“"; /* Checkmark */
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: #ecf0f1; /* Light grey-blue */
  color: #27ae60; /* Green */
  border-radius: 50%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Highlight important notes */
.guide-step .important-note {
  background-color: #fef9e7; /* Light yellow */
  border-left: 5px solid #f1c40f; /* Yellow */
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #796a30;
}

.important-note strong {
  color: #d35400; /* Orange/brown */
}

/* Final step styling */
.guide-step.final-step::before {
  background-color: #27ae60; /* Green */
}
.guide-step.final-step h2 {
  color: #27ae60; /* Green */
}

/* New style for screenshot placeholders */
.screenshot-placeholder {
  width: 100%;
  min-height: 250px;
  background-color: #f8f9fa; /* Very light grey */
  border: 2px dashed #ced4da; /* Dashed grey border */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: #868e96; /* Lighter text color */
  text-align: center;
  padding: 1rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .passerelle-guide h1 {
    font-size: 2.4rem;
  }
  .guide-timeline::before {
    left: 20px; /* Move line closer */
  }
  .guide-step {
    padding-left: 60px; /* Adjust padding */
  }
  .guide-step::before {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
  .guide-step h2 {
    font-size: 1.9rem;
    padding-top: 0;
  }
}

/* 
  Styling for Articles to Appear
*/

/* --- Main Container --- */
.ojs-article-list-container {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Article Section (e.g., "Published", "To Appear") --- */
.article-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #37bc9b; /* Accent color from original code */
}

/* --- Article Entry Card --- */
.article-entry {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    padding: 25px 30px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.article-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* --- RTL/LTR Handling --- */
.article-entry.rtl {
    text-align: right;
    direction: rtl;
}

.article-entry.rtl .article-meta {
    /* Reverses the order of flex items */
    flex-direction: row-reverse;
    border-top: 1px solid #e9ecef; /* Ensure border is still visible */
}

.article-entry.rtl .article-authors {
    /* Ensure author block aligns */
    text-align: right;
}


/* --- Article Title --- */
.article-title {
    font-size: 1.7rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.article-title a {
    text-decoration: none;
    color: #212529;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #37bc9b;
    text-decoration: underline;
}

/* --- Article Authors --- */
.article-authors {
    font-size: 1.4rem; /* 15px */
    color: #555;
    font-style: italic;
    margin-bottom: 15px;
}

/* --- Article Metadata (Dates, Pages) --- */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px; /* 10px row-gap, 24px column-gap */
    font-size: 1.3rem;
    color: #6c757d;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.article-meta span {
    display: inline-block;
}

.article-meta b {
    font-weight: 600;
    color: #495057;
    margin-right: 5px;
}

/* Specific style for "To Appear" date */
.meta-date {
    font-weight: 600;
    color: #37bc9b;
}

/* Specific style for page numbers */
.meta-pages {
    margin-left: auto; /* Pushes page numbers to the right */
}

.article-entry.rtl .meta-pages {
    margin-left: 0;
    margin-right: auto; /* Pushes page numbers to the left in RTL */
}

/* Center the logo on tablets and phones too */
@media (max-width: 991px) {
  #headerNavigationContainer .navbar-header {
    float: none;
    width: 100%;
    text-align: center;
  }

  #headerNavigationContainer .navbar-brand {
    float: none;
    display: inline-block;
    padding: 15px 0; /* adjust if needed */
  }
}

/* Hide the search form on all screen sizes */
#headerNavigationContainer form.navbar-form {
  display: none !important;
}

/* Hide the entire search block everywhere */
.pull-md-right {
  display: none !important;
}

/* Fix text color of the galley button */
.current_issue .galley-link {
    color: #fff !important;
}

/* Fix text color of the galley headline */
.current_issue .galleys h2 small {
    color: #26172a !important;
    font-weight: bold;
}