.sidebar {
  width: 225px;
  background: #ffffff;
  border: 0px solid #ccc;
  padding: 0px 5px;
  box-shadow: 0 0 0px rgba(0,0,0,0.05);
}

.sidebar.right {
  float: right;
  margin-left: 5px;
}

.sidebar.left {
  float: left;
  margin-right: 5px;
}

.sidebar-title {
  background-color: #675443;
  border-bottom: 3px solid #ffc107;
  color: #fff;
  text-align: center;
  padding: 10px 0px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  margin: 5px 0px 10px 0px;
  max-width: 1220px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-list,
.sidebar-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.parent-link {
  display: block;
  background: #e5cab6;
  border-bottom: 3px solid #675443;
  color: #000;
  padding: 8px 2px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.parent-link:hover {
  background: #e4e4d7;
  color: #ff0000;
}

.child-link {
  display: block;
  background: #faecdf;
  border-bottom: 3px solid #675443;
  color: #000;
  padding: 8px 2px;
  margin-bottom: 10px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.child-link:hover {
  background: #e4e4d7;
  color: #0000ff;
}

.sidebar-sublist {
  padding-right: 0px;
  margin-right: 0px;
  border-right: 0px dashed #bbb;
  margin-bottom: 12px;
}

/* يمين */
.sidebar-container.right,
.sidebar-container.sidebar-right {
  float: right;
  margin-left: 5px;
}

/* يسار */
.sidebar-container.left,
.sidebar-container.sidebar-left {
  float: left;
  margin-right: 5px;
}

/* إلغاء الهوامش على الجوال */
@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }

  .main-with-sidebar {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}