:root {
  --text-color: #2d3943;
  --muted: #6f7d8b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
    * {
  font-family: Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.navbar-default {
    background-color: #b30000;
    border-color: #333;
}

.navbar-default .navbar-nav > li > a {
    color: #ffffff;
    font-weight: 600;
    padding: 12px 18px;
    transition: color .2s, background .2s;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a {
    color: #768998;
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.navbar-default .navbar-nav > li.active > a {
    position: relative;
}
.navbar-default .navbar-nav > li.active > a:after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 3px;
    background: #ffffff;
    
}
.navbar-default .navbar-nav > li > a {
  font-size: 1.75rem;
}

.navbar-default .dropdown-menu {
    background-color: #2a2a2a;
    border: 1px solid #444;
}
.navbar-default .dropdown-menu > li > a {
    color: #fff;
}
.navbar-default .dropdown-menu > li > a:hover {
    background-color: #333;
}


.navbar-default .navbar-toggle {
    border-color: #444;
}
.navbar-default .navbar-toggle .icon-bar {
    background-color: #768998;
}

.navbar-default {
  border-radius: 0 !important;
}

header.navbar {
  position: relative;
  z-index: 1000;
}

.cmp_breadcrumbs {
  background-color: #eaedee;
}

.breadcrumb {
  background-color: #eaedee;
}

body {
  margin: 0;
  padding: 0;
  background: #eaedee;
  color: var(--text-color);
  line-height: 1.4;
}

h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.3rem;
  display: inline-block; 
}

h1 {
  border-bottom: 3px solid #102e43;
  display: inline-block;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 2.3rem;          
  font-weight: 500;           
  position: relative;         
  display: inline-block;     
  padding-bottom: 0.3rem;     
  color: #102e43;             
}

.btn.btn-primary.read-more {
  background-color: #0c2a48; 
  color: #fff;             
  padding: 10px 30px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-inline-block;
  border: none; 
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn.btn-primary.read-more:hover {
  background-color: #0d1e2e; 
  color: #fff;
}

h2 {
  border-bottom: 3px solid #102e43;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.journals-grid {
  display: grid;
  column-gap: 3rem; 
  row-gap: 5rem;     
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-items: stretch;
}


@media (min-width: 1200px) {
  .journals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

  @media (min-width: 1200px) {
  .journals-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
  }
}

.journal-card {
  background: transparent;
  box-shadow: none; 
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0; 
  font-size: 1.50rem;
  font-weight: 500;
  text-decoration: none;
  color: #102e43;
  position: relative;
  gap: 1rem;
  margin-bottom: 24px;
}

.journal-card img {
  margin-bottom: 10px; /* المسافة بين الصورة والعنوان */
}

.image-wrapper {
  margin: 0 auto 0.75rem;
  width: fit-content;
  transition: transform .25s ease;
  will-change: transform;
}

.journal-card img {
  display: block;
  width: 250px;
  height: 365px;
  object-fit: cover;
  border-radius: 12px;
  filter: drop-shadow(0 30px 45px rgba(16, 46, 67, 0.15)); 
  transition: transform .25s ease;
}

.page_index_site,
.journals {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}


.journal-card:hover .image-wrapper,
.journal-card:focus .image-wrapper {
  transform: translateY(-8px);
}

.info {
  padding: 0.25rem 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.categories {
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.title-link {
  text-decoration: none;
  color: #102e43;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  line-height: 1.1;
  transition: text-decoration .2s;
}

.title-link:hover {
  text-decoration: underline;
  transform: scale(1.05);
}

.journal-card,
.journal-card img {
  border-radius: 0 !important;
}


journal-card {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.journal-card a img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.journal-card:hover a img {
  transform: scale(1.05);
}

.pkp_block.block_custom {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.header-with-img {
  z-index: 1100;
}


.sidebar-section.info-menu {
  background: none;
  border-radius: 6px;
  overflow: visible;
  color: white;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.sidebar-section.info-menu .journal-thumb {
  padding: 12px;
  background: none;
}

.sidebar-section.info-menu .section-header {
  background: #b30000;
  padding: 8px 12px;
  border-bottom: 1.5px solid #f5f7fa;
  font-weight: bold;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sidebar-section.info-menu .section-footer {
  background: #579934;
  padding: 8px 12px;
  border-bottom: 1.5px solid #f5f7fa;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sidebar-section.info-menu .section-item {
  padding: 8px 12px;
  border-bottom: 1.5px solid #f5f7fa;
  background: #0c2a48;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sidebar-section.info-menu .section-item a {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-section.info-menu .section-item a:hover {
    transform: scale(1.1);
}
.sidebar-section.info-menu .section-item:last-child {
  border-bottom: none;
}

body {


@media (max-width: 991px) {
  .sidebar-section.info-menu {
    width: 100%;
    box-sizing: border-box;
  }
}

.sidebar-section.submit-box {
  background: none;
  overflow: hidden;
  
  margin-bottom: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}


.sidebar-section.submit-box .submit-header {
  background: none;
  padding: 8px 12px;
  font-weight: bold;
  color: #000;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  position: relative;
}

.sidebar-section.submit-box .submit-action {
  padding: 8px 12px;
  font-weight: bold;
  color: #fff;
  font-size: 2rem;
  text-align: center;
  background: #579934;
}

.sidebar-section.submit-box .submit-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 2rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.sidebar-section.submit-box .submit-link:hover {
    transform: scale(1.1);
}
    
.page-button {
  all: unset;
  display: inline-block;
  padding: 2px 5px;
  cursor: pointer;
  color: #0f2d42;
  font-weight: bold;
  margin: 0 1.5px;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.page-button.active {
  background-color: #ccc;
}

.page-button:hover {
  background-color: #ccc;
}


.pagination-buttons {
  margin-top: 50px;
}

footer.footer {
    background-color: #ffffff; 
    color: #222; 
    padding: 20px 0;
}

footer.footer a {
    color: #222; 
}

footer.footer a:hover {
    color: #768998;
}

footer.footer {
  margin-top: 2rem;
}

